stopcpu(2)stopcpu(2)Namestopcpu - stop a CPU
Syntaxstopcpu(cpunumber)
int cpunumber;
Description
The system call stops the CPU specified by cpunumber. Any nid-boot CPU
can be stopped using this system call. Only a superuser can execute the
system call.
Return Values
The call returns 0 if the CPU was stopped successfully, or else it
returns -1 and sets errno appropriately.
Diagnostics
[EPERM] The caller is not a superuser
[EACCES] Trying to stop boot CPU
[EBUSY] The CPU is already stopped or no such CPU present
[EINVAL] Invalid value for cpunumber. A value cpunumber is
between 0 and 31.
See Also
startcpu (2), startcpu (8), stopcpu (8)
stopcpu(2)