DragonFly On-Line Manual Pages
SCHED_GETCPU(2) DragonFly System Calls Manual SCHED_GETCPU(2)
NAME
sched_getcpu -- get the CPU on which the calling thread is running
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <sys/types.h>
#include <sys/sched.h>
int
sched_getcpu(void);
DESCRIPTION
The sched_getcpu() returns the CPU on which the calling thread is
running.
SEE ALSO
usched_set(2)
HISTORY
The sched_getcpu() function first appeared in DragonFly 4.7.
DragonFly 4.7 January 19, 2017 DragonFly 4.7