From 639c5cc8c3817767ad5b125d16639c6246910cc0 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Wed, 12 Nov 2008 14:00:52 -0500 Subject: [PATCH] CPU_SET.3: Add documentation of CPU_COUNT() Signed-off-by: Michael Kerrisk --- man3/CPU_SET.3 | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/man3/CPU_SET.3 b/man3/CPU_SET.3 index e142e84a7..9bee581fd 100644 --- a/man3/CPU_SET.3 +++ b/man3/CPU_SET.3 @@ -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"