CPU_SET.3: Add documentation of CPU_COUNT()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2008-11-12 14:00:52 -05:00
parent ef5694bc07
commit 639c5cc8c3
1 changed files with 15 additions and 1 deletions

View File

@ -24,7 +24,7 @@
.\"
.TH CPU_SET 2 2008-11-12 "Linux" "Linux Programmer's Manual"
.SH NAME
CPU_CLR, CPU_ISSET, CPU_SET, CPU_ZERO \-
CPU_CLR, CPU_ISSET, CPU_SET, CPU_ZERO, CPU_COUNT \-
macros for manipulating CPU sets
.SH SYNOPSIS
.nf
@ -38,6 +38,8 @@ macros for manipulating CPU sets
.BI "void CPU_SET(int " cpu ", cpu_set_t *" set );
.br
.BI "void CPU_ZERO(cpu_set_t *" set );
.br
.BI "void CPU_COUNT(cpu_set_t *" set );
.fi
.SH DESCRIPTION
The
@ -72,6 +74,10 @@ tests to see if CPU
.I cpu
is a member of
.IR set .
.TP
.BR CPU_COUNT ()
returns the number of CPUs in
.IR set .
.PP
Where a
.I cpu
@ -94,6 +100,11 @@ returns non-zero if
is in
.IR set ;
otherwise, it returns 0.
.BR CPU_COUNT ()
returns the number of CPUs in
.IR set .
The other functions do not return a value.
.\" .SH ERRORS
.\" AFAICT, no E* errors are occur.
@ -105,6 +116,9 @@ The
and
.BR CPU_ISSET ()
macros were added in glibc 2.3.3.
.BR CPU_COUNT ()
first appeared in glibc 2.6.
.SH "CONFORMING TO"
These interfaces are Linux-specific.
.SH "SEE ALSO"