linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [udev] mention user callable udev + options in man page
@ 2003-12-30 23:42 Kay Sievers
  2003-12-31  0:36 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Kay Sievers @ 2003-12-30 23:42 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 181 bytes --]

As usual, here is the corresponding man page update and
a small text correction.

Hmm, the TODO is getting smaller.
I may take the "- lots of other stuff" line next :)

thanks,
Kay

[-- Attachment #2: 01-man-page_user-options.diff --]
[-- Type: text/plain, Size: 1630 bytes --]

diff -Nru a/udev.8 b/udev.8
--- a/udev.8	Wed Dec 31 00:33:12 2003
+++ b/udev.8	Wed Dec 31 00:33:12 2003
@@ -3,6 +3,9 @@
 udev \- Linux configurable dynamic device naming support
 .SH SYNOPSIS
 .BI udev " hotplug-subsystem"
+.br
+.B udev
+.RI "[-q " sysfs_path "] [-rVh]"
 .SH "DESCRIPTION"
 .B udev
 creates or removes device node files usually located in the /dev directory.
@@ -26,6 +29,27 @@
 On device removal,
 .B udev
 queries the internal database for the name of the device file to be deleted.
+.SH "OPTIONS"
+.B udev
+normally is called by
+.B hotplug
+with the subsystem as argument and various environment variables set.
+.br
+It may also called with the following options:
+.TP
+.B -V
+Print the version information.
+.TP
+.B -r
+Print the the
+.B udev
+root directory.
+.TP
+.BI -q " sysfs_path"
+Query with the sysfs path as argument for the name of the created device node.
+.TP
+.B -h
+Print help text.
 .SH "CONFIGURATION"
 All
 .B udev
diff -Nru a/udev.c b/udev.c
--- a/udev.c	Wed Dec 31 00:33:12 2003
+++ b/udev.c	Wed Dec 31 00:33:12 2003
@@ -130,7 +130,7 @@
 
 help:
 	printf("Usage: [-qrVh]\n"
-	       "  -q arg     query database \n"
+	       "  -q <path>  query database for the name of the created node\n"
 	       "  -r         print udev root\n"
 	       "  -V         print udev version\n"
 	       "  -h         print this help text\n"
diff -Nru a/udevdb.c b/udevdb.c
--- a/udevdb.c	Wed Dec 31 00:33:12 2003
+++ b/udevdb.c	Wed Dec 31 00:33:12 2003
@@ -130,7 +130,7 @@
 }
 
 /**
- * udevdb_init: open database for reading
+ * udevdb_open_ro: open database for reading
  */
 int udevdb_open_ro(void)
 {

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

* Re: [udev] mention user callable udev + options in man page
  2003-12-30 23:42 [udev] mention user callable udev + options in man page Kay Sievers
@ 2003-12-31  0:36 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2003-12-31  0:36 UTC (permalink / raw)
  To: linux-hotplug

On Wed, Dec 31, 2003 at 12:42:24AM +0100, Kay Sievers wrote:
> As usual, here is the corresponding man page update and
> a small text correction.

Applied, thanks.

> Hmm, the TODO is getting smaller.
> I may take the "- lots of other stuff" line next :)

Heh, I don't mind :)

thanks again,

greg k-h


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id\x1278&alloc_id371&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

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

end of thread, other threads:[~2003-12-31  0:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-30 23:42 [udev] mention user callable udev + options in man page Kay Sievers
2003-12-31  0:36 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).