[systemd-devel] udevd detect and list ata devices
Greg KH
gregkh at linuxfoundation.org
Sat Nov 21 11:00:24 PST 2015
On Sat, Nov 21, 2015 at 02:54:21AM +0100, Marek wrote:
> Im trying to list ata devices in the same manner i am able to list usb devices.
That's not an answer to the "what problem are you trying to solve" :)
And "ata" devices are not the same thing as a "usb" device is in any way
or form, so the fact that they have to be shown differently is totally
natural. You can iterate over them, you just have to find the correct
class that the kernel uses for them ("ata_device"), but there is no "ata
bus" so you will have to search for them differently.
good luck!
greg k-h
More information about the systemd-devel
mailing list