[systemd-devel] udevd detect and list ata devices
mlf.conv at gmail.com
Fri Nov 20 17:54:21 PST 2015
Im trying to list ata devices in the same manner i am able to list usb devices.
On Fri, Nov 20, 2015 at 11:00 PM, Greg KH <gregkh at linuxfoundation.org> wrote:
> On Fri, Nov 20, 2015 at 08:59:21PM +0100, Marek wrote:
>> i'm using the following code:
>> the problem is with this section of code:
>> struct udev_device* usb
>> = udev_device_get_parent_with_subsystem_devtype(scsi, "usb",
>> which along with
>> udev_device_get_sysattr_value(usb, "manufacturer"),
>> udev_device_get_sysattr_value(usb, "product"),
>> udev_device_get_sysattr_value(usb, "serial"));
>> would output all requested values, but changing "usb", "usb_device" to
>> ata and ata_device doesn't work and the program doesnt output
> That's correct, such a change would not work at all.
> What problem are you trying to solve?
> greg k-h
More information about the systemd-devel