LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Regd ioctl handler hooks in the kernel (https://www.linuxquestions.org/questions/linux-networking-3/regd-ioctl-handler-hooks-in-the-kernel-550071/)

sathishkumarr 04-30-2007 03:15 AM

Regd ioctl handler hooks in the kernel
 
Hello

I am looking to tap the ioctl commands in the kernel from user space to have my own application in kernel to extract necessary information from the command.
Is there any way where I can register as a listener to tap the ioctl commands ?

Currently I thought of changing the ioctl handler hooks in the Linux kernel to my_ioctl_handler which in turn will do the necessary processing according to my requirement and will call the actual ioctl handler. I was thinking if we have any such registration of handlers (something similar to NF_HOOK) for configurations also it will be better to use the same instead of tinkering the with the Linux kernel.

Any suggestions will be helpful.

Excuse me if this is a naive question.

Thanks
Sathish


All times are GMT -5. The time now is 01:02 PM.