libudev.c revision bd75fddbcbc65799bd4a684b3b6f4f04bcd637d8
430N/A * libudev - interface to udev device information 0N/A * Copyright (C) 2008 Kay Sievers <kay.sievers@vrfy.org> 0N/A * This library is free software; you can redistribute it and/or 0N/A * modify it under the terms of the GNU Lesser General Public 0N/A * License as published by the Free Software Foundation; either 0N/A * version 2.1 of the License, or (at your option) any later version. 0N/A * Create udev library context. 0N/A * The initial refcount is 1, and needs to be decremented to 0N/A * release the resources of the udev library context. 0N/A * Returns: a new udev library context 0N/A /* settings by environment and config file */ 0N/A /* comment or empty line */ 0N/A /* terminate value */ 0N/A * @udev: udev library context 0N/A * Take a reference of the udev library context. 0N/A * Returns: the passed udev library context 0N/A * @udev: udev library context 0N/A * Drop a reference of the udev library context. If the refcount 0N/A * reaches zero, the resources of the context will be released. 430N/A * @udev: udev library context 430N/A * @log_fn: function to be called for logging messages 430N/A * The built-in logging writes to stderr. It can be 430N/A * overridden by a custom function, to plug log messages 0N/A * into the users' logging functionality. 0N/A * udev_get_sys_path: 0N/A * @udev: udev library context 0N/A * Retrieve the sysfs mount point. The default is "/sys". For 0N/A * testing purposes, it can be overridden with the environment 0N/A * variable SYSFS_PATH. 0N/A * Returns: the sys mount point 430N/A * @udev: udev library context 430N/A * Retrieve the device directory path. The default value is "/dev", 430N/A * the actual value may be overridden in the udev configuration 430N/A * Returns: the device directory path