Editing IOCTL
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 379: | Line 379: | ||
= Finding the IOCTL handler address for a device in kernel = | = Finding the IOCTL handler address for a device in kernel = | ||
<pre> | |||
Find a string of the device name in kernel. | |||
There should be only two cross-references from function: make_dev and mutex_init. make_dev is the interesting one. | |||
The structure before the device string is where we want to go. | |||
Follow the structure then go to the very last offset of the structure. | |||
It is the handler function in charge of IOCTLs for that device. | |||
</pre> | </pre> | ||