Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Notifications 挂接到kset->uevent_ops以获取设备通知_Notifications_Linux Kernel_Linux Device Driver_Embedded Linux_Udev - Fatal编程技术网

Notifications 挂接到kset->uevent_ops以获取设备通知

Notifications 挂接到kset->uevent_ops以获取设备通知,notifications,linux-kernel,linux-device-driver,embedded-linux,udev,Notifications,Linux Kernel,Linux Device Driver,Embedded Linux,Udev,在Linux内核版本2.6.34之前,我经常挂接到uevent_ops,以在我的块设备驱动程序的init_模块中获取设备添加/删除通知 my_uevent_ops = kset->uevent_ops; kset->uevent_ops = my_uevent_ops_callback; 现在我想将我的驱动程序移植到3.2,但是kset->uevent_ops是常量,所以我无法连接到它。他们是否有办法在我的设备驱动程序中获取阻止设备驱动程序的通知? 我还可以为块设

在Linux内核版本2.6.34之前,我经常挂接到uevent_ops,以在我的块设备驱动程序的init_模块中获取设备添加/删除通知

    my_uevent_ops = kset->uevent_ops;

    kset->uevent_ops = my_uevent_ops_callback;
现在我想将我的驱动程序移植到3.2,但是kset->uevent_ops是常量,所以我无法连接到它。他们是否有办法在我的设备驱动程序中获取阻止设备驱动程序的通知? 我还可以为块设备使用通知程序链吗

提前谢谢