search for: udev_device_new_from_syspath

Displaying 5 results from an estimated 5 matches for "udev_device_new_from_syspath".

2011 Jul 21
1
Udev rules troubles: incorrect ACTION expression?
G'day, all! It's my second trouble with NUT. Latest nut-2.6.1.tar.gz installed from source on Xenserver 5.6 SP2, UPS is Powercom WOW--500U FW3.A4 (USB). Problem with setting permissions for udev (described in /etc/udev/rules.d/52-nut-usbups.rules file): ACTION!="add|change", GOTO="nut-usbups_rules_end" don't work for me. Only when I changed ACTION to:
2010 Apr 26
0
[PATCH matahari] Created the NetworkDevice agent.
...le(entry = (readdir(entries))) + { + string ifname = string(entry->d_name); + if(ifname != "." && ifname != "..") + { + string fullpath = "/sys/class/net/" + ifname; + struct udev_device* device = udev_device_new_from_syspath(udev, + fullpath.c_str()); + + if(udev_device_get_property_value(device, "ID_BUS")) + { + int sock = socket(AF_INET, SOCK_DGRAM, 0); + struct ifreq ifr; +...
2010 Apr 26
2
Patch supercedes previous patch...
In looking at the code I realized that the last of the HAL depenencies were removed with this patch. So, I'm pushing an updated patch that contains none of the HAL code in it.
2014 Nov 27
7
[RFC] tegra: Initial support
...rate_add_match_sysname(enumerate, "render*"); + udev_enumerate_scan_devices(enumerate); + + list = udev_enumerate_get_list_entry(enumerate); + + udev_list_entry_foreach(entry, list) { + const char *path = udev_list_entry_get_name(entry); + struct udev_device *device, *bus; + + device = udev_device_new_from_syspath(udev, path); + if (!device) + continue; + + path = udev_device_get_devnode(device); + + parent = udev_device_get_parent(device); + if (!parent) { + udev_device_unref(device); + continue; + } + + /* do not match if the render nodes shares the same parent */ + if (udev_device_match(paren...
2014 Nov 27
0
[Mesa-dev] [RFC] tegra: Initial support
...rate); > + > + list = udev_enumerate_get_list_entry(enumerate); > + > + udev_list_entry_foreach(entry, list) { > + const char *path = udev_list_entry_get_name(entry); > + struct udev_device *device, *bus; > + > + device = udev_device_new_from_syspath(udev, path); > + if (!device) > + continue; > + > + path = udev_device_get_devnode(device); > + > + parent = udev_device_get_parent(device); > + if (!parent) { > + udev_device...