unlocked_ioctl vs normal ioctl

后端 未结 3 1603
难免孤独
难免孤独 2021-02-05 12:33

In my driver\'s file_operations structure, I have:

struct file_operations Fops = {
  read:    device_read,
  write:   device_write,
  unlocked_ioctl:   device_io         


        
3条回答
  •  再見小時候
    2021-02-05 13:08

    Andi Kleem posted a recipe for a quick-and-dirty conversion of code using ioctl to unlocked_ioctl on Linux kernel mailing list:

    [JANITOR PROPOSAL] Switch ioctl functions to ->unlocked_ioctl

    The recipe explains how to tweak the function's parameters and insert locking and unlocking calls.

提交回复
热议问题