From: Sukadev Bhattiprolu <sukadev-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
To: mtk.manpages-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org,
Alan Cox <alan-qBU/x9rampVanCEyBjwyrvXRex20P6io@public.gmane.org>,
hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org,
linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org,
sukadev-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org
Subject: [RFC] devpts man page update
Date: Wed, 26 Nov 2008 10:17:32 -0800 [thread overview]
Message-ID: <20081126181732.GA1509@us.ibm.com> (raw)
Michael,
Following is some text that would need to be added to devpts section of
mount(8) man page (its not a formal patch, just the text to be added).
I am looking for logistics and a general review of the text to be added.
The relevant kernel patches are currently in ttydev/linux-next trees.
I can send the formal man page patch after those patches go into mainline.
Also, is it ok to refer to 'Documentation' directory in the man page -
there are several semantics outlined in Documentation/filesystem/devpts.txt
(http://www.linux.org.uk/~alan/ttydev/pty-multiple-doc), that may be of
use only to users of containers.
Thanks,
Suka
---
--- devpts.manpage.orig 2008-11-26 10:04:11.000000000 -0800
+++ devpts.manpage 2008-11-26 10:02:15.000000000 -0800
@@ -1,3 +1,4 @@
+
Mount options for devpts
The devpts file system is a pseudo file system, traditionally mounted
on /dev/pts. In order to acquire a pseudo terminal, a process opens
@@ -17,3 +18,48 @@
default is 0600. A value of mode=620 and gid=5 makes "mesg y"
the default on newly created PTYs.
+ newinstance
+
+ Create a private instance of devpts filesystem, such that
+ indices of ptys allocated in this new instance of the
+ filesystem are independent of indices created in other
+ instances of devpts.
+
+ If this option is not specified for a mount of devpts,
+ ("legacy mode"), that instance of devpts shares the pty
+ indices with the initial/default mount of devpts. i.e.
+ all mounts of devpts without this 'newinstance' option
+ share the same set of pty indices. Each mount of devpts
+ with newinstance option has a private set of pty indices.
+
+ This option is mainly used to support containers in the
+ linux kernel. It is implemented in linux kernel versions
+ starting with 2.6.XX. Further, this mount option is valid
+ only if CONFIG_DEVPTS_MULTIPLE_INSTANCES is enabled in the
+ kernel configuration.
+
+ To use this option effectively, '/dev/ptmx' must be a
+ symlink to 'pts/ptmx'. See Documentation/filesystems/
+ devpts.txt for details.
+
+ ptmxmode=value
+
+ Set the mode for the new 'ptmx' device node in the devpts
+ filesystem. Default mode is 0000 for compatibility with
+ legacy mode of devpts.
+
+ This option is only implemented in linux kernel versions
+ starting with 2.6.XX. Further this option is valid only if
+ CONFIG_DEVPTS_MULTIPLE_INSTANCES is enabled in the kernel
+ configuration.
+
+ With support for multiple instances of devpts (see
+ 'newinstance' option above), each instance has a private
+ 'ptmx' node in the root of the devpts filesystem (typically
+ '/dev/pts/ptmx').
+
+ For compatibility with older versions of the kernel, the
+ default mode ot the new 'ptmx' node is 0000. 'ptmxmode'
+ option specifies a more useful mode for the 'ptmx' node
+ and is highly recommended when the 'newinstance' option
+ is specified.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2008-11-26 18:17 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-26 18:17 Sukadev Bhattiprolu [this message]
[not found] ` <20081126181732.GA1509-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2008-11-27 11:38 ` [RFC] devpts man page update Michael Kerrisk
[not found] ` <cfd18e0f0811270338o392daf81kdfd46cec51325891-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-11-27 19:14 ` H. Peter Anvin
2008-12-01 18:10 ` Sukadev Bhattiprolu
[not found] ` <20081201181055.GA12493-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2008-12-01 19:31 ` Michael Kerrisk
[not found] ` <cfd18e0f0812011131g2bbe2d6flb8cc89eaa7f96ad4-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-12-01 19:42 ` H. Peter Anvin
[not found] ` <49343E32.50707-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
2008-12-01 20:05 ` Michael Kerrisk
[not found] ` <cfd18e0f0812011205w62f30725m53f4b16cea3272aa-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-12-01 21:08 ` Andries E. Brouwer
2008-12-01 21:35 ` H. Peter Anvin
2008-12-01 22:39 ` Karel Zak
[not found] ` <20081201223913.GF2956-sHeGUpI7y9L/9pzu0YdTqQ@public.gmane.org>
2008-12-01 22:41 ` H. Peter Anvin
[not found] ` <4934682F.7050305-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
2008-12-01 23:00 ` Karel Zak
[not found] ` <20081201230031.GA26838-sHeGUpI7y9L/9pzu0YdTqQ@public.gmane.org>
2008-12-01 23:03 ` H. Peter Anvin
2008-12-01 23:19 ` H. Peter Anvin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081126181732.GA1509@us.ibm.com \
--to=sukadev-23vcf4htsmix0ybbhkvfkdbpr1lh4cv8@public.gmane.org \
--cc=alan-qBU/x9rampVanCEyBjwyrvXRex20P6io@public.gmane.org \
--cc=hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mtk.manpages-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org \
--cc=serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org \
--cc=sukadev-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.