Re: Getting HDD serial in kernel space

From: Andrey Polovov
Date: Sun Nov 15 2009 - 09:27:06 EST


Andrey Polovov:

> How can I do it in kernel space (it is one hdd in machine, plugged with
> SATA)?

What I need is a small piece of code that can help me in getting a list
(ata_device array?) of plugged HDDs and their serial numbers.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/