sched_getcpu
(3)determine CPU on which the calling thread is running
#include <sched.h> int sched_getcpu(void); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): sched_getcpu(): Since glibc 2.14: _GNU_SOURCE Before glibc 2.14: _BSD_SOURCE || _SVID_SOURCE /* _GNU_SOURCE also suffices */
LIBRARY
DESCRIPTION
RETURN VALUE
ERRORS
- ENOSYS
- This kernel does not implement getcpu(2).