X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=udevinfo.8;h=ac8cc7fda5ed9c54d4324775a73ab2cd1540176d;hp=67d034aea6f3cb90bd6183d3ea2e1693a9588890;hb=5e65ab9a191268fec7cddf6b7d8c0fefd2a6b920;hpb=16378373cb9d96e5d424921806ff71f218e92694 diff --git a/udevinfo.8 b/udevinfo.8 index 67d034aea..ac8cc7fda 100644 --- a/udevinfo.8 +++ b/udevinfo.8 @@ -1,52 +1,57 @@ -.TH UDEVINFO 8 "October 2003" "" "Linux Administrator's Manual" +.TH UDEVINFO 8 "January 2004" "" "Linux Administrator's Manual" .SH NAME udevinfo \- retrieve information from udev .SH SYNOPSIS .B udevinfo -.RI "[-q " query_type " -p " sysfs_path "] [-drVh]" +.RI "[\-q " query_type " \-p " sysfs_path "] [\-drVh]" .SH "DESCRIPTION" .B udevinfo -allows users to query the udev database for information on any of the devices -currently present in the system. It also provides a way to query any device -in the sysfs tree to help in creating +allows users to query the udev database for information on any device +currently present on the system. It also provides a way to query any device +in the sysfs tree to help creating .B udev -rule files. +rules. .SH "OPTIONS" .TP -.B -V +.B \-V Print the version information. .TP -.B -r -Print the the +.B \-r +Print the .B udev_root -directory. When used in conjunction with a query for the node name, the +directory. When used in conjunction with a query for the node name or the +symlink names, the .B udev_root -will be prepended. +will be prepended to query result. .TP -.BI -q " query_type" -Query the database for specified value of a created device node. -.RB Needs " -p " or " -n " specified. +.BI \-q " query_type" +Query the database for specified value of a created device node or network +interface. +.RB Needs " \-p " or " \-n " specified. .br Valid types are: -.BR name ", " symlink ", " mode " ," owner " , " group " or " path. +.BR name ", " symlink ", " path " or " all. .TP -.BI -p " sysfs_path" +.BI \-p " sysfs_path" Specify the sysfs path of the device to query. .TP -.BI -n " name" -Specify the name of the node for the device to query. +.BI \-n " name" +Specify the name of the node, the symlink or the network interface for the +device to query. Partition names generated with the NAME{all_partitons} option +can not be queried, the main device must be used instead. .TP -.B -a +.B \-a Print all .BI SYSFS{ filename } -attributes along the device chain. Useful for for finding +attributes along the device chain. Useful for finding unique attributes to compose a rule. -.RB Needs " -p " specified. +.RB Needs " \-p " specified. .TP -.B -d -Dump the whole database. +.B \-d +Print the relationship between the devpath and the node name for all devices +currently available in the database. .TP -.B -h +.B \-h Print help text. .SH "FILES" .nf