readme.simple_device

来自「fsmlabs的real time linux的内核」· SIMPLE_DEVICE 代码 · 共 15 行

SIMPLE_DEVICE
15
字号
simple_device.c is actually not related to rtlinux at all - but as there are questions about how to write a simple driver on the mailing list from time to time a very simple driver is included here. It only provides open/read/release and these do nothing but issue a printk (view with dmesg)to trigger the open/read/release load simple_driver.o and then run ./read_simple_driver folowed by  dmesg  to see the printk's .If you want to get a serious intro to writing linux device drivers and not only how to missuse them as an interface to rt-threads check "Linux DeviceDrivers 2nd Edition" by Allessandro Rubini (publisher: O'Reilly)hofrat

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?