#include struct cdev cdev_init(cdev, fops) cdev * cdev_alloc() cdev->fops = fops cdev_add(cdev, dev_t, unsigned n) (n is 1 most of the time) cdev_del(cdev) older way!?! register_chrdev/unregister_chrdev propose new way!?!