udev_device_get_driver implementation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I was looking at the udev_device_get_driver implementation. It first gets the sys path and then appends "driver", and calls readlink to get the driver information. Does it work for all cases? While working on a project, I found that following the sys path, there is no "driver", but it should be "device/driver" i.e. if I append "device/driver" instead of "driver" only, I can use readlink to get the driver information. 

Can anybody explain whether this was missing in the implementation or am I missing something?

thanks
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux