Get scheduling parameters (REALTIME).
2. Syntax
1 |
int sched_getparam(pid_t pid, struct sched_param *param); |
3. Param
pid
specify process pid.
If a process specified by pid exists, and if the calling process has permission, the scheduling parameters for the process whose process ID is equal to pid shall be returned.
If pid is zero, the scheduling parameters for the calling process shall be returned. The behavior of the sched_getparam() function is unspecified if the value of pid is negative.
param
A sched_param structure object pointer that get scheduling parameters.
4. Return Value
Upon successful, return zero; otherwise, return -1, and set errno to indicate the error.
5. Remark
-
- The behavior of the sched_getparam() function is unspecified if the value of pid is negative.
近期评论