mirror of https://github.com/mkerrisk/man-pages
CPU_SET.3: Add documentation of CPU_COUNT()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
ef5694bc07
commit
639c5cc8c3
|
@ -24,7 +24,7 @@
|
||||||
.\"
|
.\"
|
||||||
.TH CPU_SET 2 2008-11-12 "Linux" "Linux Programmer's Manual"
|
.TH CPU_SET 2 2008-11-12 "Linux" "Linux Programmer's Manual"
|
||||||
.SH NAME
|
.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
|
macros for manipulating CPU sets
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.nf
|
.nf
|
||||||
|
@ -38,6 +38,8 @@ macros for manipulating CPU sets
|
||||||
.BI "void CPU_SET(int " cpu ", cpu_set_t *" set );
|
.BI "void CPU_SET(int " cpu ", cpu_set_t *" set );
|
||||||
.br
|
.br
|
||||||
.BI "void CPU_ZERO(cpu_set_t *" set );
|
.BI "void CPU_ZERO(cpu_set_t *" set );
|
||||||
|
.br
|
||||||
|
.BI "void CPU_COUNT(cpu_set_t *" set );
|
||||||
.fi
|
.fi
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
The
|
The
|
||||||
|
@ -72,6 +74,10 @@ tests to see if CPU
|
||||||
.I cpu
|
.I cpu
|
||||||
is a member of
|
is a member of
|
||||||
.IR set .
|
.IR set .
|
||||||
|
.TP
|
||||||
|
.BR CPU_COUNT ()
|
||||||
|
returns the number of CPUs in
|
||||||
|
.IR set .
|
||||||
.PP
|
.PP
|
||||||
Where a
|
Where a
|
||||||
.I cpu
|
.I cpu
|
||||||
|
@ -94,6 +100,11 @@ returns non-zero if
|
||||||
is in
|
is in
|
||||||
.IR set ;
|
.IR set ;
|
||||||
otherwise, it returns 0.
|
otherwise, it returns 0.
|
||||||
|
|
||||||
|
.BR CPU_COUNT ()
|
||||||
|
returns the number of CPUs in
|
||||||
|
.IR set .
|
||||||
|
|
||||||
The other functions do not return a value.
|
The other functions do not return a value.
|
||||||
.\" .SH ERRORS
|
.\" .SH ERRORS
|
||||||
.\" AFAICT, no E* errors are occur.
|
.\" AFAICT, no E* errors are occur.
|
||||||
|
@ -105,6 +116,9 @@ The
|
||||||
and
|
and
|
||||||
.BR CPU_ISSET ()
|
.BR CPU_ISSET ()
|
||||||
macros were added in glibc 2.3.3.
|
macros were added in glibc 2.3.3.
|
||||||
|
|
||||||
|
.BR CPU_COUNT ()
|
||||||
|
first appeared in glibc 2.6.
|
||||||
.SH "CONFORMING TO"
|
.SH "CONFORMING TO"
|
||||||
These interfaces are Linux-specific.
|
These interfaces are Linux-specific.
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
|
|
Loading…
Reference in New Issue