public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] devpts man page update
@ 2008-11-26 18:17 Sukadev Bhattiprolu
       [not found] ` <20081126181732.GA1509-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 14+ messages in thread
From: Sukadev Bhattiprolu @ 2008-11-26 18:17 UTC (permalink / raw)
  To: mtk.manpages-gM/Ye1E23mwN+BqQ9rBEUg, Alan Cox,
	hpa-YMNOUZJC4hwAvxtiuMwx3w, linux-man-u79uwXL29TY76Z2rM5mHXA
  Cc: serue-r/Jw6+rmf7HQT0dZR+AlfA, sukadev-r/Jw6+rmf7HQT0dZR+AlfA

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

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2008-12-01 23:19 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-26 18:17 [RFC] devpts man page update Sukadev Bhattiprolu
     [not found] ` <20081126181732.GA1509-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2008-11-27 11:38   ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox