On Mon, May 10, 2021 at 09:42:38PM +0800, youling257 wrote: > Hi, my xt_qtaguid module need convert to "struct proc_ops", > https://github.com/youling257/android-4.9/commit/a6e3cddcceb96eb3edeb0da0951399b75d4f8731 > https://github.com/youling257/android-4.9/commit/9eb92f5bcdcbc5b54d7dfe4b3050c8b9b8a17999 > > static const struct proc_ops qtudev_proc_ops = { > .proc_open = qtudev_open, > .proc_release = qtudev_release, > }; > > static struct miscdevice qtu_device = { > .minor = MISC_DYNAMIC_MINOR, > .name = QTU_DEV_NAME, > .fops = &qtudev_proc_ops, > /* How sad it doesn't allow for defaults: .mode = S_IRUGO | S_IWUSR */ > }; > > I have problem about ".fops = &qtudev_fops,", convert to ".fops = &qtudev_proc_ops," is right? No! Those remain file_operations driving your device. How is it supposed to work otherwise?