Re: Regarding enumerating Block devices registered in kernel mode

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

 



Am 12.11.2013 09:47, schrieb vaibhav:
> Thanks for replying Richard,
> 
> I need to access the blockdevice structure associated with each block device
> so that I can patch its block_device_operations to receive ioctls calls in
> my code. In my code I check for ioctls that I handle and pass it to the
> original ioctl handler if the ioctl is not understood by me.  
> 
> I intend to patch these block_device structures during my module
> initialization hence I need to iterate all BD's available in the system at
> that point. Also need to keep track of new BD's appearing in the system so
> that I can patch them as soon as they are available.

Please don't do that.
Such patching/hooking/etc...-games are doomed to failure.

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