Re: Regarding enumerating Block devices registered in kernel mode

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

 



On Tue, Nov 12, 2013 at 6:24 AM, vaibhav <vaibhav92@xxxxxxxxxxx> wrote:
> 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.

Why do you need this within the kernel?
Sounds much like a userspace job done in kernel land...

-- 
Thanks,
//richard

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies





[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux