Talk:IOCTL

From PS4 Developer wiki
Revision as of 20:14, 27 October 2024 by CelesteBlue (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Finding the IOCTL handler address for a device in kernel

Find a string of the device 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.