Clarify that "unused" fields in shminfo structure are

"unused within the kernel".
Minor rewordings in comments for shminfo structure.
This commit is contained in:
Michael Kerrisk 2008-05-20 21:20:38 +00:00
parent ffc19357d9
commit ba1eb78cfb
1 changed files with 9 additions and 8 deletions

View File

@ -40,7 +40,7 @@
.\" attaches to a segment that has already been marked for deletion. .\" attaches to a segment that has already been marked for deletion.
.\" 2005-08-02, mtk: Added IPC_INFO, SHM_INFO, SHM_STAT descriptions. .\" 2005-08-02, mtk: Added IPC_INFO, SHM_INFO, SHM_STAT descriptions.
.\" .\"
.TH SHMCTL 2 2005-05-30 "Linux" "Linux Programmer's Manual" .TH SHMCTL 2 2008-05-20 "Linux" "Linux Programmer's Manual"
.SH NAME .SH NAME
shmctl \- shared memory control shmctl \- shared memory control
.SH SYNOPSIS .SH SYNOPSIS
@ -168,13 +168,14 @@ feature test macro is defined:
.in +4n .in +4n
struct shminfo { struct shminfo {
unsigned long shmmax; /* Max. segment size */ unsigned long shmmax; /* Maximum segment size */
unsigned long shmmin; /* Min. segment size; always 1 */ unsigned long shmmin; /* Minimum segment size; always 1 */
unsigned long shmmni; /* Max. # of segments */ unsigned long shmmni; /* Maximum number of segments */
unsigned long shmseg; /* Max. # of segments that a unsigned long shmseg; /* Maximum number of segments that
process can attach; unused */ a process can attach; unused
unsigned long shmall; /* Max. # of pages of shared within kernel */
memory, system-wide */ unsigned long shmall; /* Maximum number of pages of
shared memory, system-wide */
}; };
.in .in