home *** CD-ROM | disk | FTP | other *** search
-
-
-
- sssscccchhhheeeedddd____ggggeeeettttppppaaaarrrraaaammmm((((2222)))) sssscccchhhheeeedddd____ggggeeeettttppppaaaarrrraaaammmm((((2222))))
-
-
-
- NNNNAAAAMMMMEEEE
- _ssss_cccc_hhhh_eeee_dddd______gggg_eeee_tttt_pppp_aaaa_rrrr_aaaa_mmmm - get the scheduling parameters of a process
-
- CCCC SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<sssscccchhhheeeedddd....hhhh>>>>
- _iiii_nnnn_tttt _ssss_cccc_hhhh_eeee_dddd______gggg_eeee_tttt_pppp_aaaa_rrrr_aaaa_mmmm _((((_pppp_iiii_dddd______tttt _p_i_d_,,,, _cccc_oooo_nnnn_ssss_tttt _ssss_tttt_rrrr_uuuu_cccc_tttt _ssss_cccc_hhhh_eeee_dddd______pppp_aaaa_rrrr_aaaa_mmmm _****_p_a_r_a_m_))))_;;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _ssss_cccc_hhhh_eeee_dddd______gggg_eeee_tttt_pppp_aaaa_rrrr_aaaa_mmmm system call is used to get the scheduling parameters
- for the process specified by _p_i_d. If _p_i_d is set to zero, then the
- scheduling parameters of the calling process will be obtained.
-
- A process may obtain the scheduling parameters of itself and any process
- sharing the same real user ID [see _gggg_eeee_tttt_uuuu_iiii_dddd(2)]. To obtain the scheduling
- parameters of an unrelated process, the calling process must have the
- CCCCAAAAPPPP____SSSSCCCCHHHHEEEEDDDD____MMMMGGGGTTTT capability [see _c_a_p_a_b_i_l_i_t_y].
-
- The scheduling parameters of _p_i_d are returned via the parameter structure
- at address _p_a_r_a_m (see _ssss_cccc_hhhh_eeee_dddd______ssss_eeee_tttt_pppp_aaaa_rrrr_aaaa_mmmm(2)).
-
- If _p_i_d refers to a POSIX thread process [see _pppp_tttt_hhhh_rrrr_eeee_aaaa_dddd_ssss(3P)] then this call
- retrieves the scheduling policy parameters that are shared by process
- scope and bound scope threads.
-
- _ssss_cccc_hhhh_eeee_dddd______gggg_eeee_tttt_pppp_aaaa_rrrr_aaaa_mmmm will fail if one or more of the following are true:
-
- [EINVAL] The process specified by _p_i_d is not executing with a
- scheduling policy.
-
- [EFAULT] The address specified by _p_a_r_a_m is outside the range of the
- address space of the calling process.
-
- [EPERM] The calling process attempted to obtain the scheduling
- parameters of an unrelated process and the caller does not
- have the CCCCAAAAPPPP____SSSSCCCCHHHHEEEEDDDD____MMMMGGGGTTTT capability.
-
- [ESRCH] The process specified by _p_i_d does not exist.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- capability(4), sched_getscheduler(2), sched_get_priority_max(2),
- sched_get_priority_min(2), sched_rr_get_interval(2), sched_setparam(2),
- sched_setscheduler(2), sched_yield(2), getuid(2), pthreads(5)
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- Upon successful completion, a value of 0 is returned to the calling
- process. Otherwise, a value of -1 is returned and _eeee_rrrr_rrrr_nnnn_oooo is set to
- indicate the error.
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-