133 lines
3.1 KiB
HTML
133 lines
3.1 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of IPC_NAMESPACES</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>IPC_NAMESPACES</H1>
|
|
Section: Linux Programmer's Manual (7)<BR>Updated: 2019-08-02<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
ipc_namespaces - overview of Linux IPC namespaces
|
|
<A NAME="lbAC"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
IPC namespaces isolate certain IPC resources,
|
|
namely, System V IPC objects (see
|
|
<B><A HREF="/cgi-bin/man/man2html?7+sysvipc">sysvipc</A></B>(7))
|
|
|
|
and (since Linux 2.6.30)
|
|
|
|
|
|
POSIX message queues (see
|
|
<B><A HREF="/cgi-bin/man/man2html?7+mq_overview">mq_overview</A></B>(7)).
|
|
|
|
The common characteristic of these IPC mechanisms is that IPC
|
|
objects are identified by mechanisms other than filesystem
|
|
pathnames.
|
|
<P>
|
|
|
|
Each IPC namespace has its own set of System V IPC identifiers and
|
|
its own POSIX message queue filesystem.
|
|
Objects created in an IPC namespace are visible to all other processes
|
|
that are members of that namespace,
|
|
but are not visible to processes in other IPC namespaces.
|
|
<P>
|
|
|
|
The following
|
|
<I>/proc</I>
|
|
|
|
interfaces are distinct in each IPC namespace:
|
|
<DL COMPACT>
|
|
<DT id="1">*<DD>
|
|
The POSIX message queue interfaces in
|
|
<I>/proc/sys/fs/mqueue</I>.
|
|
|
|
<DT id="2">*<DD>
|
|
The System V IPC interfaces in
|
|
<I>/proc/sys/kernel</I>,
|
|
|
|
namely:
|
|
<I>msgmax</I>,
|
|
|
|
<I>msgmnb</I>,
|
|
|
|
<I>msgmni</I>,
|
|
|
|
<I>sem</I>,
|
|
|
|
<I>shmall</I>,
|
|
|
|
<I>shmmax</I>,
|
|
|
|
<I>shmmni</I>,
|
|
|
|
and
|
|
<I>shm_rmid_forced</I>.
|
|
|
|
<DT id="3">*<DD>
|
|
The System V IPC interfaces in
|
|
<I>/proc/sysvipc</I>.
|
|
|
|
</DL>
|
|
<P>
|
|
|
|
When an IPC namespace is destroyed
|
|
(i.e., when the last process that is a member of the namespace terminates),
|
|
all IPC objects in the namespace are automatically destroyed.
|
|
<P>
|
|
|
|
Use of IPC namespaces requires a kernel that is configured with the
|
|
<B>CONFIG_IPC_NS</B>
|
|
|
|
option.
|
|
<A NAME="lbAD"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+nsenter">nsenter</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+unshare">unshare</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?2+clone">clone</A></B>(2),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?2+setns">setns</A></B>(2),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?2+unshare">unshare</A></B>(2),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?7+mq_overview">mq_overview</A></B>(7),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?7+namespaces">namespaces</A></B>(7),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?7+sysvipc">sysvipc</A></B>(7)
|
|
|
|
<A NAME="lbAE"> </A>
|
|
<H2>COLOPHON</H2>
|
|
|
|
This page is part of release 5.05 of the Linux
|
|
<I>man-pages</I>
|
|
|
|
project.
|
|
A description of the project,
|
|
information about reporting bugs,
|
|
and the latest version of this page,
|
|
can be found at
|
|
<A HREF="https://www.kernel.org/doc/man-pages/.">https://www.kernel.org/doc/man-pages/.</A>
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="4"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="5"><A HREF="#lbAC">DESCRIPTION</A><DD>
|
|
<DT id="6"><A HREF="#lbAD">SEE ALSO</A><DD>
|
|
<DT id="7"><A HREF="#lbAE">COLOPHON</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:06:08 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|