diff options
Diffstat (limited to 'man/udev_device_new_from_syspath.xml')
-rw-r--r-- | man/udev_device_new_from_syspath.xml | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/man/udev_device_new_from_syspath.xml b/man/udev_device_new_from_syspath.xml index eef9ca94b8..f5ec03d4c7 100644 --- a/man/udev_device_new_from_syspath.xml +++ b/man/udev_device_new_from_syspath.xml @@ -82,11 +82,11 @@ <refsect1> <title>Description</title> - <para><function>udev_device_new_from_syspath</function>, - <function>udev_device_new_from_devnum</function>, - <function>udev_device_new_from_subsystem_sysname</function>, - <function>udev_device_new_from_device_id</function>, and - <function>udev_device_new_from_environment</function> + <para><function>udev_device_new_from_syspath()</function>, + <function>udev_device_new_from_devnum()</function>, + <function>udev_device_new_from_subsystem_sysname()</function>, + <function>udev_device_new_from_device_id()</function>, and + <function>udev_device_new_from_environment()</function> allocate a new udev device object and returns a pointer to it. This object is opaque and must not be accessed by the caller via different means than functions provided by libudev. Initially, the reference count @@ -95,25 +95,25 @@ <function>udev_device_unref()</function>. Once the reference count hits 0, the device object is destroyed and freed.</para> - <para><function>udev_device_new_from_syspath</function>, - <function>udev_device_new_from_devnum</function>, - <function>udev_device_new_from_subsystem_sysname</function>, and - <function>udev_device_new_from_device_id</function> + <para><function>udev_device_new_from_syspath()</function>, + <function>udev_device_new_from_devnum()</function>, + <function>udev_device_new_from_subsystem_sysname()</function>, and + <function>udev_device_new_from_device_id()</function> create the device object based on information found in <filename>/sys/</filename>, annotated with properties from the udev-internal device database. A syspath is any subdirectory of <filename>/sys/</filename>, with the restriction that a subdirectory of <filename>/sys/devices</filename> (or a symlink to one) represents a real device and as such must contain - a <filename>uevent</filename> file. <function>udev_device_new_from_devnum</function> + a <filename>uevent</filename> file. <function>udev_device_new_from_devnum()</function> takes a device type, which can be <constant>b</constant> for block devices or <constant>c</constant> for character devices, as well as a devnum (see <citerefentry project='man-pages'><refentrytitle>makedev</refentrytitle><manvolnum>3</manvolnum></citerefentry>). - <function>udev_device_new_from_subsystem_sysname</function> looks up devices based + <function>udev_device_new_from_subsystem_sysname()</function> looks up devices based on the provided subsystem and sysname (see <citerefentry><refentrytitle>udev_device_get_subsystem</refentrytitle><manvolnum>3</manvolnum></citerefentry> and <citerefentry><refentrytitle>udev_device_get_sysname</refentrytitle><manvolnum>3</manvolnum></citerefentry>) - and <function>udev_device_new_from_device_id</function> looks up devices based on the provided + and <function>udev_device_new_from_device_id()</function> looks up devices based on the provided device ID, which is a special string in one of the following four forms: <table> <title>Device ID strings</title> @@ -142,7 +142,7 @@ </table> </para> - <para><function>udev_device_new_from_environment</function> + <para><function>udev_device_new_from_environment()</function> creates a device from the current environment (see <citerefentry project='man-pages'><refentrytitle>environ</refentrytitle><manvolnum>7</manvolnum></citerefentry>). Each key-value pair is interpreted in the same way as if it was |