Modern Character Devices (Screenplay)

jjj

  • device_create() between cdev_init() and cdev_add()

    • ⟶ chances are that kernel is unhappy with uninitialized data.

    • Nobody knows though

  • device_destroy(), emphasize on reverse order from init()

  • Effect:

    • /sys/class/my_class

    • /dev/my_driver-0no manual mknod!