Results 1 to 1 of 1
I had a block device driver working fine on Ubuntu 10.04 ( kernel version 2.6.32) . It used to hook into uevent_ops to get the device add/remove notification in init_module. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-26-2012 #1
- Join Date
- Nov 2012
How to get block device add/remove notification in kernel space ?
my_uevent_ops = kset->uevent_ops;
kset->uevent_ops = my_uevent_ops_callback;
Now I want to port that driver to Ubuntu 12.04 (kernel 3.2.0-32-generic-pae) ,but the kset->uevent_ops is made constant, so it can't hook into it.
Is their any way to get add/remove event notifications of block devices in my device driver?
Also can I use notifier chain for block devices ?
Thanks in advance.