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

Exercise 1-2: Pseudo Character Driver (Single Device) - Implementation

 

Pseduo Character Driver (PCD) File Operation Methods

Open

Close (e.g., close(fd) system call from the user space)

Read (e.g., read(fd, buff, 20) system call from the user space)

 

read-method

 

 

f-op-and-f-pos

 

Write (e.g., write(fd, buff, 20))

 

write-method

 

llseek (e.g., llseek(fd, buff, 20))

 

Pseudo Character Driver (Single Device) Implementation