From: Andrey Borzenkov Date: Fri, 13 Jan 2006 19:52:41 +0000 Subject: Put lists in man pages in alphabetical order Message-Id: <200601132252.45419.arvidjaar@mail.ru> MIME-Version: 1 Content-Type: multipart/mixed; boundary="nextPart1185243.0HenKJoDVj" List-Id: To: linux-hotplug@vger.kernel.org --nextPart1185243.0HenKJoDVj Content-Type: multipart/mixed; boundary="Boundary-01=_NUAyDjM70Oxj/YQ" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_NUAyDjM70Oxj/YQ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I find it hard to read man pages with unordered lists even if they are not= =20 excessively long. This patch attempts to put them in alphabetical order; fo= r=20 substitutions in udev.8 the question is what is primary - single letter or= =20 word form? Of course it is possible to have primary with description and=20 second list which says "alternative forms are ..."? Is it OK? Should I make second list too? Regards =2Dandrey --Boundary-01=_NUAyDjM70Oxj/YQ Content-Type: text/x-diff; charset="us-ascii"; name="udev-alphabetize_lists_in_man.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="udev-alphabetize_lists_in_man.patch" diff --git a/udev.8 b/udev.8 index 6d2f5e6..2dd0aee 100644 =2D-- a/udev.8 +++ b/udev.8 @@ -29,6 +29,13 @@ All udev configuration files are placed=20 udev expects its main configuration file at=20 \fI/etc/udev/udev.conf\fR. It consists of a set of variables allowing the = user to override default udev values. The following variables can be set: .TP +\fBudev_log\fR +The logging priority. Valid values are the numerical syslog priorities or = their textual representations:=20 +\fBdebug\fR. +\fBerr\fR,=20 +and=20 +\fBinfo\fR=20 +.TP \fBudev_root\fR Specifies where to place the device nodes in the filesystem. The default v= alue is=20 \fI/dev\fR. @@ -37,13 +44,6 @@ Specifies where to place the device node The name of the udev rules file or directory to look for files with the su= ffix=20 \fI.rules\fR. Multiple rule files are read in lexical order. The default v= alue is=20 \fI/etc/udev/rules.d\fR. =2D.TP =2D\fBudev_log\fR =2DThe logging priority. Valid values are the numerical syslog priorities o= r their textual representations:=20 =2D\fBerr\fR,=20 =2D\fBinfo\fR=20 =2Dand=20 =2D\fBdebug\fR. .SS "Rules files" .PP The udev rules are read from the files located in the=20 @@ -72,35 +72,35 @@ The following key names can be used to m \fBACTION\fR Match the kernel action name. .TP =2D\fBKERNEL\fR =2DMatch the kernel device name +\fBBUS\fR +Match the type of bus the device is connected to. .TP \fBDEVPATH\fR Match the kernel devpath. .TP =2D\fBSUBSYSTEM\fR =2DMatch the kernel subsystem name =2D.TP =2D\fBBUS\fR =2DMatch the type of bus the device is connected to. =2D.TP \fBDRIVER\fR Match the kernel driver name. .TP =2D\fBID\fR =2DMatch the device number on the bus. =2D.TP \fBENV{\fR\fB\fIkey\fR\fR\fB}\fR Match against the value of an environment key. Depending on the specified = operation, this key is also used as an assignment. .TP =2D\fBSYSFS{\fR\fB\fIfilename\fR\fR\fB}\fR =2DMatch the sysfs attribute value. Up to five values can be specified. Tra= iling whitespace is ignored, if the specified match value does not contain = trailing whitespace itself. +\fBID\fR +Match the device number on the bus. +.TP +\fBKERNEL\fR +Match the kernel device name .TP \fBPROGRAM\fR Execute external program. The key is true, if the program returns without = exit code zero. The whole event environment is available to the executed pr= ogram. The program's output printed to stdout is available for the RESULT k= ey. .TP \fBRESULT\fR Match the returned string of the last PROGRAM call. This key can be used i= n the same or in any later rule after a PROGRAM call. +.TP +\fBSUBSYSTEM\fR +Match the kernel subsystem name +.TP +\fBSYSFS{\fR\fB\fIfilename\fR\fR\fB}\fR +Match the sysfs attribute value. Up to five values can be specified. Trail= ing whitespace is ignored, if the specified match value does not contain tr= ailing whitespace itself. .PP Most of the fields support a shell style pattern matching. The following p= attern characters are supported: .TP @@ -115,24 +115,9 @@ Matches any single character specified w .PP The following keys can get values assigned: .TP =2D\fBNAME\fR =2DThe name of the node to be created, or the name the network interface sh= ould be renamed to. Only one rule can set the node name, all later rules wi= th a NAME key will be ignored. =2D.TP =2D\fBSYMLINK\fR =2DThe name of a symlink targeting the node. Every matching rule can add th= is value to the list of symlinks to be created along with the device node. = Multiple symlinks may be specified by separating the names by the space cha= racter. =2D.TP =2D\fBOWNER, GROUP, MODE\fR =2DThe permissions for the device node. Every specified value overwrites th= e compiled\-in default value. =2D.TP \fBENV{\fR\fB\fIkey\fR\fR\fB}\fR Export the key to the environment. Depending on the specified operation, t= his key is also used as a match. .TP =2D\fBRUN\fR =2DAdd a program to the list of programs to be executed for a specific devi= ce. =2D.TP =2D\fBLABEL\fR =2DNamed label where a GOTO can jump to. =2D.TP \fBGOTO\fR Jumps to the next LABEL with a matching gname .TP @@ -143,18 +128,33 @@ will execute an external program and rea \fBfile\fR=20 will inport a text file. If no option is given, udev will determine it fro= m the executable bit of of the file permissions. .TP =2D\fBWAIT_FOR_SYSFS\fR =2DWait for the specified sysfs file of the device to be created. May be us= ed to fight agains timing issues wth the kernel. +\fBLABEL\fR +Named label where a GOTO can jump to. +.TP +\fBNAME\fR +The name of the node to be created, or the name the network interface shou= ld be renamed to. Only one rule can set the node name, all later rules with= a NAME key will be ignored. .TP \fBOPTIONS\fR =2D\fBlast_rule\fR=20 =2Dstops further rules application. No later rules will have any effect.=20 +\fBall_partitions\fR=20 +will create device nodes for all available partitions of a block device. T= his may be useful for removable media. \fBignore_device\fR=20 will ignore this event completely.=20 \fBignore_remove\fR=20 will ignore any later remove event for this device. This may be useful as = a workaround for broken device drivers.=20 =2D\fBall_partitions\fR=20 =2Dwill create device nodes for all available partitions of a block device.= This may be useful for removable media. +\fBlast_rule\fR=20 +stops further rules application. No later rules will have any effect.=20 +.TP +\fBOWNER, GROUP, MODE\fR +The permissions for the device node. Every specified value overwrites the = compiled\-in default value. +.TP +\fBRUN\fR +Add a program to the list of programs to be executed for a specific device. +.TP +\fBSYMLINK\fR +The name of a symlink targeting the node. Every matching rule can add this= value to the list of symlinks to be created along with the device node. Mu= ltiple symlinks may be specified by separating the names by the space chara= cter. +.TP +\fBWAIT_FOR_SYSFS\fR +Wait for the specified sysfs file of the device to be created. May be used= to fight agains timing issues wth the kernel. .PP The=20 \fBNAME\fR,=20 @@ -165,34 +165,34 @@ and=20 \fBGROUP\fR=20 fields support simple printf\-like string substitutions: .TP =2D\fB%k\fR, \fB$kernel\fR =2DThe kernel name for this device. =2D.TP \fB%b\fR, \fB$id\fR The kernel bus id for this device. .TP =2D\fB%n\fR, \fB$number\fR =2DThe kernel number for this device. For example, 'sda3' has kernel number= of '3' =2D.TP =2D\fB%p\fR, \fB$devpath\fR =2DThe devpath of the device. =2D.TP =2D\fB%s{\fR\fB\fIfile\fR\fR\fB}\fR, \fB$sysfs{\fR\fB\fIfile\fR\fR\fB}\fR =2DThe content of a sysfs attribute. +\fB%c\fR, \fB$result\fR +The string returned by the external program requested with PROGRAM. A sing= le part of the string, separated by a space character may be selected by sp= ecifying the part number as an attribute:=20 +\fB%c{N}\fR. If the number is followed by the '+' char this part plus all = remaining parts of the result string are substituted:=20 +\fB%c{N+}\fR .TP \fB%E{\fR\fB\fIkey\fR\fR\fB}\fR, \fB$env{\fR\fB\fIkey\fR\fR\fB}\fR The value of an environment variable. .TP +\fB%k\fR, \fB$kernel\fR +The kernel name for this device. +.TP \fB%m\fR, \fB$major\fR The kernel major number for the device. .TP =2D\fB%M\fR \fB$minor\fR +\fB%M\fR, \fB$minor\fR The kernel minor number for the device. .TP =2D\fB%c\fR, \fB$result\fR =2DThe string returned by the external program requested with PROGRAM. A si= ngle part of the string, separated by a space character may be selected by = specifying the part number as an attribute:=20 =2D\fB%c{N}\fR. If the number is followed by the '+' char this part plus al= l remaining parts of the result string are substituted:=20 =2D\fB%c{N+}\fR +\fB%n\fR, \fB$number\fR +The kernel number for this device. For example, 'sda3' has kernel number o= f '3' +.TP +\fB%N\fR, \fB$tempnode\fR +The name of a created temporary device node to provide access to the devic= e from a external program before the real node is created. +.TP +\fB%p\fR, \fB$devpath\fR +The devpath of the device. .TP \fB%P\fR, \fB$parent\fR The node name of the parent device. @@ -200,8 +200,8 @@ The node name of the parent device. \fB%r\fR, \fB$root\fR The udev_root value. .TP =2D\fB%N\fR, \fB$tempnode\fR =2DThe name of a created temporary device node to provide access to the dev= ice from a external program before the real node is created. +\fB%s{\fR\fB\fIfile\fR\fR\fB}\fR, \fB$sysfs{\fR\fB\fIfile\fR\fR\fB}\fR +The content of a sysfs attribute. .TP \fB%%\fR The '%' character itself. diff --git a/udevd.8 b/udevd.8 index c6efe9a..75f0dde 100644 =2D-- a/udevd.8 +++ b/udevd.8 @@ -29,11 +29,11 @@ udevcontrol can dynamically set the log=20 and=20 \fBdebug\fR. .TP =2D\fBstop_exec_queue\fR =2Dudevcontrol stops the execution of events from udevd. =2D.TP \fBstart_exec_queue\fR udevcontrol starts the execution of events from udevd. +.TP +\fBstop_exec_queue\fR +udevcontrol stops the execution of events from udevd. .SH "ENVIRONMENT" .TP \fBUDEV_LOG\fR diff --git a/udevinfo.8 b/udevinfo.8 index fc7001d..1ef9403 100644 =2D-- a/udevinfo.8 +++ b/udevinfo.8 @@ -17,26 +17,32 @@ udevinfo \- query device information fro udevinfo queries the udev database for device information stored in the ud= ev database. It can also query the properties of a device from its sysfs re= presentation to help creating udev rules that match this device. .SH "OPTIONS" .TP +\fB\-a\fR +Print all sysfs properties of the specified device that can be used in ude= v rules to match the specified device. It prints all devices along the chai= n, up to the root of sysfs that can be used in udev rules. +.TP +\fB\-e\fR +Export the content of the udev database. +.TP +\fB\-h\fR +Print help text. +.TP +\fB\-n \fR\fB\fInode\-name\fR\fR +The name of the device node or a symlink to query +.TP +\fB\-p \fR\fB\fIdevice\-path\fR\fR +The sysfs path of the device to query. +.TP \fB\-q\fR Query the database for specified type of device data. It needs the=20 \fB\-p\fR=20 or=20 \fB\-n\fR=20 to identify the specified device. Valid queries are:=20 +\fBall\fR. +\fBenv\fR,=20 \fBname\fR,=20 =2D\fBsymlink\fR,=20 \fBpath\fR,=20 =2D\fBenv\fR,=20 =2D\fBall\fR. =2D.TP =2D\fB\-a\fR =2DPrint all sysfs properties of the specified device that can be used in u= dev rules to match the specified device. It prints all devices along the ch= ain, up to the root of sysfs that can be used in udev rules. =2D.TP =2D\fB\-p \fR\fB\fIdevice\-path\fR\fR =2DThe sysfs path of the device to query. =2D.TP =2D\fB\-n \fR\fB\fInode\-name\fR\fR =2DThe name of the device node or a symlink to query +\fBsymlink\fR,=20 .TP \fB\-r\fR The udev root directory:=20 @@ -45,12 +51,6 @@ The udev root directory:=20 or=20 \fBsymlink\fR=20 query, the query returns the absolute path. =2D.TP =2D\fB\-e\fR =2DExport the content of the udev database. =2D.TP =2D\fB\-h\fR =2DPrint help text. .SH "AUTHOR" .PP Written by Kay Sievers=20 --Boundary-01=_NUAyDjM70Oxj/YQ-- --nextPart1185243.0HenKJoDVj Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBDyAUNR6LMutpd94wRAkwNAJ9bqUazlNnwZ9PcmfX3goTWAlfaUACffCLw EoKndk/MmaWeR9J1KZ9RQcQ= =sXtO -----END PGP SIGNATURE----- --nextPart1185243.0HenKJoDVj-- ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel