*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: sched_getcpu | Section: 3 | Source: FreeBSD | File: sched_getcpu.3.gz
SCHED_GETCPU(3) FreeBSD Library Functions Manual SCHED_GETCPU(3) NAME sched_getcpu - get current CPU LIBRARY Standard C Library (libc, -lc) SYNOPSIS #include <sched.h> int sched_getcpu(void); DESCRIPTION The sched_getcpu() function returns the current CPU on which the calling thread is running. RETURN VALUES sched_getcpu() returns the 0-based index of the current CPU at the time of the call. The value may become invalid immediately after return, unless the thread is pinned to a specific CPU. CPU numbering is the same as used by cpuset(2) and CPU affinity calls. There are no error values as sched_getcpu() does not fail. SEE ALSO cpuset(2), cpuset_getaffinity(2), cpuset_setaffinity(2), pthread_getaffinity_np(3), pthread_setaffinity_np STANDARDS The sched_getcpu function originated in Linux. This implementation aims to be source-compatible with the Linux implementation. HISTORY The sched_getcpu function was introduced in FreeBSD 13.1. FreeBSD 14.1-RELEASE-p8 November 13, 2024 FreeBSD 14.1-RELEASE-p8

Navigation Options