@c
|
@c
|
@c COPYRIGHT (c) 1988-2002.
|
@c COPYRIGHT (c) 1988-2002.
|
@c On-Line Applications Research Corporation (OAR).
|
@c On-Line Applications Research Corporation (OAR).
|
@c All rights reserved.
|
@c All rights reserved.
|
@c
|
@c
|
@c memorymgmt.t,v 1.5 2002/01/17 21:47:45 joel Exp
|
@c memorymgmt.t,v 1.5 2002/01/17 21:47:45 joel Exp
|
@c
|
@c
|
|
|
@chapter Memory Management Manager
|
@chapter Memory Management Manager
|
|
|
@section Introduction
|
@section Introduction
|
|
|
The
|
The
|
memory management manager is ...
|
memory management manager is ...
|
|
|
The directives provided by the memory management manager are:
|
The directives provided by the memory management manager are:
|
|
|
@itemize @bullet
|
@itemize @bullet
|
@item @code{mlockall} - Lock the Address Space of a Process
|
@item @code{mlockall} - Lock the Address Space of a Process
|
@item @code{munlockall} - Unlock the Address Space of a Process
|
@item @code{munlockall} - Unlock the Address Space of a Process
|
@item @code{mlock} - Lock a Range of the Process Address Space
|
@item @code{mlock} - Lock a Range of the Process Address Space
|
@item @code{munlock} - Unlock a Range of the Process Address Space
|
@item @code{munlock} - Unlock a Range of the Process Address Space
|
@item @code{mmap} - Map Process Addresses to a Memory Object
|
@item @code{mmap} - Map Process Addresses to a Memory Object
|
@item @code{munmap} - Unmap Previously Mapped Addresses
|
@item @code{munmap} - Unmap Previously Mapped Addresses
|
@item @code{mprotect} - Change Memory Protection
|
@item @code{mprotect} - Change Memory Protection
|
@item @code{msync} - Memory Object Synchronization
|
@item @code{msync} - Memory Object Synchronization
|
@item @code{shm_open} - Open a Shared Memory Object
|
@item @code{shm_open} - Open a Shared Memory Object
|
@item @code{shm_unlink} - Remove a Shared Memory Object
|
@item @code{shm_unlink} - Remove a Shared Memory Object
|
@end itemize
|
@end itemize
|
|
|
@section Background
|
@section Background
|
|
|
There is currently no text in this section.
|
There is currently no text in this section.
|
|
|
@section Operations
|
@section Operations
|
|
|
There is currently no text in this section.
|
There is currently no text in this section.
|
|
|
@section Directives
|
@section Directives
|
|
|
This section details the memory management manager's directives.
|
This section details the memory management manager's directives.
|
A subsection is dedicated to each of this manager's directives
|
A subsection is dedicated to each of this manager's directives
|
and describes the calling sequence, related constants, usage,
|
and describes the calling sequence, related constants, usage,
|
and status codes.
|
and status codes.
|
|
|
@c
|
@c
|
@c
|
@c
|
@c
|
@c
|
@page
|
@page
|
@subsection mlockall - Lock the Address Space of a Process
|
@subsection mlockall - Lock the Address Space of a Process
|
|
|
@findex mlockall
|
@findex mlockall
|
@cindex lock the address space of a process
|
@cindex lock the address space of a process
|
|
|
@subheading CALLING SEQUENCE:
|
@subheading CALLING SEQUENCE:
|
|
|
@ifset is-C
|
@ifset is-C
|
@example
|
@example
|
int mlockall(
|
int mlockall(
|
);
|
);
|
@end example
|
@end example
|
@end ifset
|
@end ifset
|
|
|
@ifset is-Ada
|
@ifset is-Ada
|
@end ifset
|
@end ifset
|
|
|
@subheading STATUS CODES:
|
@subheading STATUS CODES:
|
|
|
@table @b
|
@table @b
|
@item E
|
@item E
|
The
|
The
|
|
|
@end table
|
@end table
|
|
|
@subheading DESCRIPTION:
|
@subheading DESCRIPTION:
|
|
|
@subheading NOTES:
|
@subheading NOTES:
|
|
|
@c
|
@c
|
@c
|
@c
|
@c
|
@c
|
@page
|
@page
|
@subsection munlockall - Unlock the Address Space of a Process
|
@subsection munlockall - Unlock the Address Space of a Process
|
|
|
@findex munlockall
|
@findex munlockall
|
@cindex unlock the address space of a process
|
@cindex unlock the address space of a process
|
|
|
@subheading CALLING SEQUENCE:
|
@subheading CALLING SEQUENCE:
|
|
|
@ifset is-C
|
@ifset is-C
|
@example
|
@example
|
int munlockall(
|
int munlockall(
|
);
|
);
|
@end example
|
@end example
|
@end ifset
|
@end ifset
|
|
|
@ifset is-Ada
|
@ifset is-Ada
|
@end ifset
|
@end ifset
|
|
|
@subheading STATUS CODES:
|
@subheading STATUS CODES:
|
|
|
@table @b
|
@table @b
|
@item E
|
@item E
|
The
|
The
|
|
|
@end table
|
@end table
|
|
|
@subheading DESCRIPTION:
|
@subheading DESCRIPTION:
|
|
|
@subheading NOTES:
|
@subheading NOTES:
|
|
|
@c
|
@c
|
@c
|
@c
|
@c
|
@c
|
@page
|
@page
|
@subsection mlock - Lock a Range of the Process Address Space
|
@subsection mlock - Lock a Range of the Process Address Space
|
|
|
@findex mlock
|
@findex mlock
|
@cindex lock a range of the process address space
|
@cindex lock a range of the process address space
|
|
|
@subheading CALLING SEQUENCE:
|
@subheading CALLING SEQUENCE:
|
|
|
@ifset is-C
|
@ifset is-C
|
@example
|
@example
|
int mlock(
|
int mlock(
|
);
|
);
|
@end example
|
@end example
|
@end ifset
|
@end ifset
|
|
|
@ifset is-Ada
|
@ifset is-Ada
|
@end ifset
|
@end ifset
|
|
|
@subheading STATUS CODES:
|
@subheading STATUS CODES:
|
|
|
@table @b
|
@table @b
|
@item E
|
@item E
|
The
|
The
|
|
|
@end table
|
@end table
|
|
|
@subheading DESCRIPTION:
|
@subheading DESCRIPTION:
|
|
|
@subheading NOTES:
|
@subheading NOTES:
|
|
|
@c
|
@c
|
@c
|
@c
|
@c
|
@c
|
@page
|
@page
|
@subsection munlock - Unlock a Range of the Process Address Space
|
@subsection munlock - Unlock a Range of the Process Address Space
|
|
|
@findex munlock
|
@findex munlock
|
@cindex unlock a range of the process address space
|
@cindex unlock a range of the process address space
|
|
|
@subheading CALLING SEQUENCE:
|
@subheading CALLING SEQUENCE:
|
|
|
@ifset is-C
|
@ifset is-C
|
@example
|
@example
|
int munlock(
|
int munlock(
|
);
|
);
|
@end example
|
@end example
|
@end ifset
|
@end ifset
|
|
|
@ifset is-Ada
|
@ifset is-Ada
|
@end ifset
|
@end ifset
|
|
|
@subheading STATUS CODES:
|
@subheading STATUS CODES:
|
|
|
@table @b
|
@table @b
|
@item E
|
@item E
|
The
|
The
|
|
|
@end table
|
@end table
|
|
|
@subheading DESCRIPTION:
|
@subheading DESCRIPTION:
|
|
|
@subheading NOTES:
|
@subheading NOTES:
|
|
|
@c
|
@c
|
@c
|
@c
|
@c
|
@c
|
@page
|
@page
|
@subsection mmap - Map Process Addresses to a Memory Object
|
@subsection mmap - Map Process Addresses to a Memory Object
|
|
|
@findex mmap
|
@findex mmap
|
@cindex map process addresses to a memory object
|
@cindex map process addresses to a memory object
|
|
|
@subheading CALLING SEQUENCE:
|
@subheading CALLING SEQUENCE:
|
|
|
@ifset is-C
|
@ifset is-C
|
@example
|
@example
|
int mmap(
|
int mmap(
|
);
|
);
|
@end example
|
@end example
|
@end ifset
|
@end ifset
|
|
|
@ifset is-Ada
|
@ifset is-Ada
|
@end ifset
|
@end ifset
|
|
|
@subheading STATUS CODES:
|
@subheading STATUS CODES:
|
|
|
@table @b
|
@table @b
|
@item E
|
@item E
|
The
|
The
|
|
|
@end table
|
@end table
|
|
|
@subheading DESCRIPTION:
|
@subheading DESCRIPTION:
|
|
|
@subheading NOTES:
|
@subheading NOTES:
|
|
|
@c
|
@c
|
@c
|
@c
|
@c
|
@c
|
@page
|
@page
|
@subsection munmap - Unmap Previously Mapped Addresses
|
@subsection munmap - Unmap Previously Mapped Addresses
|
|
|
@findex munmap
|
@findex munmap
|
@cindex unmap previously mapped addresses
|
@cindex unmap previously mapped addresses
|
|
|
@subheading CALLING SEQUENCE:
|
@subheading CALLING SEQUENCE:
|
|
|
@ifset is-C
|
@ifset is-C
|
@example
|
@example
|
int munmap(
|
int munmap(
|
);
|
);
|
@end example
|
@end example
|
@end ifset
|
@end ifset
|
|
|
@ifset is-Ada
|
@ifset is-Ada
|
@end ifset
|
@end ifset
|
|
|
@subheading STATUS CODES:
|
@subheading STATUS CODES:
|
|
|
@table @b
|
@table @b
|
@item E
|
@item E
|
The
|
The
|
|
|
@end table
|
@end table
|
|
|
@subheading DESCRIPTION:
|
@subheading DESCRIPTION:
|
|
|
@subheading NOTES:
|
@subheading NOTES:
|
|
|
@c
|
@c
|
@c
|
@c
|
@c
|
@c
|
@page
|
@page
|
@subsection mprotect - Change Memory Protection
|
@subsection mprotect - Change Memory Protection
|
|
|
@findex mprotect
|
@findex mprotect
|
@cindex change memory protection
|
@cindex change memory protection
|
|
|
@subheading CALLING SEQUENCE:
|
@subheading CALLING SEQUENCE:
|
|
|
@ifset is-C
|
@ifset is-C
|
@example
|
@example
|
int mprotect(
|
int mprotect(
|
);
|
);
|
@end example
|
@end example
|
@end ifset
|
@end ifset
|
|
|
@ifset is-Ada
|
@ifset is-Ada
|
@end ifset
|
@end ifset
|
|
|
@subheading STATUS CODES:
|
@subheading STATUS CODES:
|
|
|
@table @b
|
@table @b
|
@item E
|
@item E
|
The
|
The
|
|
|
@end table
|
@end table
|
|
|
@subheading DESCRIPTION:
|
@subheading DESCRIPTION:
|
|
|
@subheading NOTES:
|
@subheading NOTES:
|
|
|
@c
|
@c
|
@c
|
@c
|
@c
|
@c
|
@page
|
@page
|
@subsection msync - Memory Object Synchronization
|
@subsection msync - Memory Object Synchronization
|
|
|
@findex msync
|
@findex msync
|
@cindex memory object synchronization
|
@cindex memory object synchronization
|
|
|
@subheading CALLING SEQUENCE:
|
@subheading CALLING SEQUENCE:
|
|
|
@ifset is-C
|
@ifset is-C
|
@example
|
@example
|
int msync(
|
int msync(
|
);
|
);
|
@end example
|
@end example
|
@end ifset
|
@end ifset
|
|
|
@ifset is-Ada
|
@ifset is-Ada
|
@end ifset
|
@end ifset
|
|
|
@subheading STATUS CODES:
|
@subheading STATUS CODES:
|
|
|
@table @b
|
@table @b
|
@item E
|
@item E
|
The
|
The
|
|
|
@end table
|
@end table
|
|
|
@subheading DESCRIPTION:
|
@subheading DESCRIPTION:
|
|
|
@subheading NOTES:
|
@subheading NOTES:
|
|
|
@c
|
@c
|
@c
|
@c
|
@c
|
@c
|
@page
|
@page
|
@subsection shm_open - Open a Shared Memory Object
|
@subsection shm_open - Open a Shared Memory Object
|
|
|
@findex shm_open
|
@findex shm_open
|
@cindex open a shared memory object
|
@cindex open a shared memory object
|
|
|
@subheading CALLING SEQUENCE:
|
@subheading CALLING SEQUENCE:
|
|
|
@ifset is-C
|
@ifset is-C
|
@example
|
@example
|
int shm_open(
|
int shm_open(
|
);
|
);
|
@end example
|
@end example
|
@end ifset
|
@end ifset
|
|
|
@ifset is-Ada
|
@ifset is-Ada
|
@end ifset
|
@end ifset
|
|
|
@subheading STATUS CODES:
|
@subheading STATUS CODES:
|
|
|
@table @b
|
@table @b
|
@item E
|
@item E
|
The
|
The
|
|
|
@end table
|
@end table
|
|
|
@subheading DESCRIPTION:
|
@subheading DESCRIPTION:
|
|
|
@subheading NOTES:
|
@subheading NOTES:
|
|
|
@c
|
@c
|
@c
|
@c
|
@c
|
@c
|
@page
|
@page
|
@subsection shm_unlink - Remove a Shared Memory Object
|
@subsection shm_unlink - Remove a Shared Memory Object
|
|
|
@findex shm_unlink
|
@findex shm_unlink
|
@cindex remove a shared memory object
|
@cindex remove a shared memory object
|
|
|
@subheading CALLING SEQUENCE:
|
@subheading CALLING SEQUENCE:
|
|
|
@ifset is-C
|
@ifset is-C
|
@example
|
@example
|
int shm_unlink(
|
int shm_unlink(
|
);
|
);
|
@end example
|
@end example
|
@end ifset
|
@end ifset
|
|
|
@ifset is-Ada
|
@ifset is-Ada
|
@end ifset
|
@end ifset
|
|
|
@subheading STATUS CODES:
|
@subheading STATUS CODES:
|
|
|
@table @b
|
@table @b
|
@item E
|
@item E
|
The
|
The
|
|
|
@end table
|
@end table
|
|
|
@subheading DESCRIPTION:
|
@subheading DESCRIPTION:
|
|
|
@subheading NOTES:
|
@subheading NOTES:
|
|
|
|
|