Home | Projects | Notes > Linux Device Drivers > Exercise 1: Pseudo Character Driver (Single Device) - Requirements

Exercise 1: Pseudo Character Driver (Single Device) - Requirements

 

Requirements

 

pseudo-char-driver

 

Connection Establishment between Device File Access and the Driver

  1. Create device number

    • Request the kernel to dynamically allocate the device numbers(s)

  2. Make a char device registration with the Virtual File System (VFS). (CDEV_ADD)

  3. Create device files

  4. Implement the driver's file operation methods for open, close, read, write, llseek, etc.

 

Expected Outcome