CAP_SCHEDCTL(3N)CAP_SCHEDCTL(3N)NAMEcap_schedctl - alter scheduling parameters
SYNOPSIS
#include <cap_net.h>
ptrdiff_t cap_schedctl(int cmd, ...);
DESCRIPTIONcap_schedctl asserts appropriate privilege when altering the scheduling
parameters of a process.
If _POSIX_CAP is in effect, a process calling this function should have
CAP_SCHED_MGT capability in the permitted vector of its capability set.
RETURN VALUEScap_schedctl returns 0 if successful, -1 otherwise.
ERRORScap_schedctl has the same error codes as schedctl(2).
SEE ALSOcapability(4), schedctl(2), sysconf(3c).
Page 1