This commit is contained in:
Michael Kerrisk 2008-07-03 12:22:43 +00:00
parent fa23e0232e
commit 90fe01c523
1 changed files with 17 additions and 4 deletions

View File

@ -49,15 +49,24 @@ and
.I node
are no longer the current CPU and node.
.SH VERSIONS
.BR getcpu (2)
.BR getcpu ()
was added in kernel 2.6.19 for x86_64 and i386.
.SH CONFORMING TO
.BR getcpu ()
is Linux specific.
.SH NOTES
Linux makes a best effort to make this call as fast possible.
The intention of
.I getcpu(2)
.BR getcpu ()
is to allow programs to make optimizations with per-CPU data
or for NUMA optimization.
Glibc does not provide a wrapper for this system call; call it using
.BR syscall (2);
or use
.BR sched_getcpu (3)
instead.
The
.I tcache
argument is unused since Linux 2.6.24.
@ -109,7 +118,11 @@ migrating threads between CPUs, and so the argument is now ignored.
.\" soft CPU affinity means that the information is unlikely to change
.\" over the course of the caching interval.
.SH SEE ALSO
.\" FIXME(mk) add SEE ALSO entries in other pages, pointing to this page
.\" FIXME . add SEE ALSO entry in cpuset.7
.\" FIXME . add SEE ALSO entries in mbind.2, set_mempolicy.2,
.\" sched_setaffinity.2, pointing to this page
.BR mbind (2),
.BR set_mempolicy (2),
.BR sched_setaffinity (2)
.BR sched_setaffinity (2),
.BR sched_getcpu (3)
.\" FIXME . cpuset (7)