- Build the kernel module chardev.ko from chardev.c
- Insert the module in the kernel with insmod
- Find the major device number dynamically assigned to this device.
- Create one (or more) device files with this major device number
- Read/write to this device.