First page Back Continue Last page Overview Graphics
Example of device registration
In order to initialize I/O devices of the parallel printer driver class we invoke:
register_chrdev(LP_MAJOR, "lp", &lp_fops);
The three paramenters are stored in the proper structure of the chrdevs array
When implementing I/O drivers for new character devices we shall make use of the register_chrdev() function