This project is demo of linux device driver. It provides driver of charactor driver, block driver and net driver.
NOTE: This is a Work-In-Progress. A lot of will change in the coming weeks, and I recommend against using this in production code as API might change. Patches are welcome!
test code of list_head, list_add, list_add_tail, list_del
list_move, list_move_tail and list_for_each.
hlist_head, hlist_node etc.
test code of kfifo_alloc, kfifo_in, kfifo_out, kfifo_size
kfifo_len, kfifo_avail, kfifo_is_empty, kfifo_is_full, kfifo_reset, kfifo_free.
implement of charactor driver.
System V API | hello-driver function |
---|---|
open | hello_open |
read | hello_read |
write | hello_write |
ioctl | hello_ioctl |
close | hello_close |
poll | hello_poll |
implement of block driver.
TBD
This project is under Apache License, Version 2.0. For more details please see LICENSE file.
Copyright (C) 2017 Wang Yaofu. All rights reserved.