網頁

2010年5月19日 星期三

Device Driver

Device driver
/dev : a list of device node (sudo file system)
type
major number
minor number

2 special device  nodes
dev - null
dev - zero

dev_t dev =MKDEV(major, minor)
register_chrdev


/proc/devices: list of devices

File Operations
struct file_operations scull_fops
open - initialization

沒有留言: