Modern Character Devices (Screenplay)¶
jjj
device_create()
betweencdev_init()
andcdev_add()
⟶ chances are that kernel is unhappy with uninitialized data.
Nobody knows though
device_destroy()
, emphasize on reverse order frominit()
Effect:
/sys/class/my_class
/dev/my_driver-0
⟶ no manualmknod
!