How to find the code segment of a Linux driver in tmpfs? (in real-time)
问题 I have a character driver called drv1 , and a user application uses ioctl to communicate with it, which will transmit the parameter struct file *filp . Now I want to find out the address of the code segment of drv1 , but I came across some problems. At first, I guess struct file *filp might be useful so I looked at the definition in source code, and find a pointer struct inode *f_inode; /* cached value */ . Then I roughly searched the definition of struct inode (I'm not sure whether it is