Regarding enumerating Block devices registered in kernel mode

vaibhav vaibhav92 at hotmail.com
Tue Nov 12 00:24:15 EST 2013


Hi Mentors,

 

I am working on a kernel module wherein I need to enumerate all the block
devices registered with the kernel. Also looking for notifications when a
block device gets added/remove. Google didn't help much and the thought of
reading the contents of /sys/block from kernel mode  looks messy to me.
Looking for guidance on performing this enumeration.

 

Thanks,

VJ

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20131112/9ae06307/attachment.html 


More information about the Kernelnewbies mailing list