mirror of https://github.com/mkerrisk/man-pages
ffix
This commit is contained in:
parent
f36903108a
commit
9fcbe835d8
|
@ -104,7 +104,7 @@ Valid values for
|
||||||
.I cmd
|
.I cmd
|
||||||
are:
|
are:
|
||||||
.br
|
.br
|
||||||
.TP 12
|
.TP 10
|
||||||
.B IPC_STAT
|
.B IPC_STAT
|
||||||
Copy information from the kernel data structure associated with
|
Copy information from the kernel data structure associated with
|
||||||
.I shmid
|
.I shmid
|
||||||
|
@ -151,7 +151,7 @@ will be set.
|
||||||
.PP
|
.PP
|
||||||
The caller \fImust\fP ensure that a segment is eventually destroyed;
|
The caller \fImust\fP ensure that a segment is eventually destroyed;
|
||||||
otherwise its pages that were faulted in will remain in memory or swap.
|
otherwise its pages that were faulted in will remain in memory or swap.
|
||||||
.TP
|
.TP 10
|
||||||
.BR IPC_INFO " (Linux-specific)"
|
.BR IPC_INFO " (Linux-specific)"
|
||||||
Returns information about system-wide shared memory limits and
|
Returns information about system-wide shared memory limits and
|
||||||
parameters in the structure pointed to by
|
parameters in the structure pointed to by
|
||||||
|
@ -169,11 +169,12 @@ feature test macro is defined:
|
||||||
|
|
||||||
struct shminfo {
|
struct shminfo {
|
||||||
unsigned long shmmax; /* Maximum segment size */
|
unsigned long shmmax; /* Maximum segment size */
|
||||||
unsigned long shmmin; /* Minimum segment size; always 1 */
|
unsigned long shmmin; /* Minimum segment size;
|
||||||
|
always 1 */
|
||||||
unsigned long shmmni; /* Maximum number of segments */
|
unsigned long shmmni; /* Maximum number of segments */
|
||||||
unsigned long shmseg; /* Maximum number of segments that
|
unsigned long shmseg; /* Maximum number of segments
|
||||||
a process can attach; unused
|
that a process can attach;
|
||||||
within kernel */
|
unused within kernel */
|
||||||
unsigned long shmall; /* Maximum number of pages of
|
unsigned long shmall; /* Maximum number of pages of
|
||||||
shared memory, system-wide */
|
shared memory, system-wide */
|
||||||
};
|
};
|
||||||
|
@ -205,18 +206,18 @@ feature test macro is defined:
|
||||||
.in +4n
|
.in +4n
|
||||||
|
|
||||||
struct shm_info {
|
struct shm_info {
|
||||||
int used_ids; /* # of currently existing
|
int used_ids;/* # of currently existing
|
||||||
segments */
|
segments */
|
||||||
unsigned long shm_tot; /* Total number of shared
|
unsigned long shm_tot; /* Total number of shared
|
||||||
memory pages */
|
memory pages */
|
||||||
unsigned long shm_rss; /* # of resident shared
|
unsigned long shm_rss; /* # of resident shared
|
||||||
memory pages */
|
memory pages */
|
||||||
unsigned long shm_swp; /* # of swapped shared
|
unsigned long shm_swp; /* # of swapped shared
|
||||||
memory pages */
|
memory pages */
|
||||||
unsigned long swap_attempts;
|
unsigned long swap_attempts;
|
||||||
/* Unused since Linux 2.4 */
|
/* Unused since Linux 2.4 */
|
||||||
unsigned long swap_successes;
|
unsigned long swap_successes;
|
||||||
/* Unused since Linux 2.4 */
|
/* Unused since Linux 2.4 */
|
||||||
};
|
};
|
||||||
.in
|
.in
|
||||||
.fi
|
.fi
|
||||||
|
@ -235,7 +236,7 @@ all shared memory segments on the system.
|
||||||
The caller can prevent or allow swapping of a shared
|
The caller can prevent or allow swapping of a shared
|
||||||
memory segment with the following \fIcmd\fP values:
|
memory segment with the following \fIcmd\fP values:
|
||||||
.br
|
.br
|
||||||
.TP 12
|
.TP 10
|
||||||
.BR SHM_LOCK " (Linux-specific)"
|
.BR SHM_LOCK " (Linux-specific)"
|
||||||
Prevent swapping of the shared memory segment.
|
Prevent swapping of the shared memory segment.
|
||||||
The caller must fault in
|
The caller must fault in
|
||||||
|
|
Loading…
Reference in New Issue