mirror of https://github.com/mkerrisk/man-pages
getcpu.2: getcpu() now has a glibc wrapper; remove mention of syscall(2)
The glibc wrapper was added in glibc 2.29, release on 1 Feb 2019. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
527bd1d7ae
commit
04e590e6a5
|
@ -19,9 +19,6 @@ getcpu \- determine CPU and NUMA node on which the calling thread is running
|
||||||
.BI "int getcpu(unsigned *" cpu ", unsigned *" node \
|
.BI "int getcpu(unsigned *" cpu ", unsigned *" node \
|
||||||
", struct getcpu_cache *" tcache );
|
", struct getcpu_cache *" tcache );
|
||||||
.fi
|
.fi
|
||||||
.PP
|
|
||||||
.IR Note :
|
|
||||||
There is no glibc wrapper for this system call; see NOTES.
|
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
The
|
The
|
||||||
.BR getcpu ()
|
.BR getcpu ()
|
||||||
|
@ -82,12 +79,6 @@ The intention of
|
||||||
is to allow programs to make optimizations with per-CPU data
|
is to allow programs to make optimizations with per-CPU data
|
||||||
or for NUMA optimization.
|
or for NUMA optimization.
|
||||||
.PP
|
.PP
|
||||||
Glibc does not provide a wrapper for this system call; call it using
|
|
||||||
.BR syscall (2);
|
|
||||||
or use
|
|
||||||
.BR sched_getcpu (3)
|
|
||||||
instead.
|
|
||||||
.PP
|
|
||||||
The
|
The
|
||||||
.I tcache
|
.I tcache
|
||||||
argument is unused since Linux 2.6.24.
|
argument is unused since Linux 2.6.24.
|
||||||
|
|
Loading…
Reference in New Issue