摘要:
ioctl ioctl是驱动程序向用户提供的控制设备的接口。用户空间的ioctl系统调用的形式如下: int ioctl(int fd, unsigned long cmd, ...); 驱动程序的ioctl形式有所不同: int ioctl(int fd, unsigned long cmd, . 阅读全文
摘要:
Device registeration The kernel uses structures of type struct cdev to represent char devices internally. Include <linux/cdev.h> so that you can use t 阅读全文
摘要:
/proc /proc filesystem is a special, software-created filesystem that is used by the kernel to export information to the world. If you want to work wi 阅读全文
摘要:
Spinlock Spinlock usually used in code that cannot sleep, thus has higher performance than semaphores. Spinlock is implemented as a bit in an integer 阅读全文
摘要:
简介 PCI(Peripheral Component Interconnect)用来指明计算机的各个部分如何进行交互,用来取代ISA(Industry Standard Architecture),实现更高效的、平台独立的、使外围设备更加易于移动的总线标准。 每个PCI设备通过bus number 阅读全文