On 10/1/2012 4:43 AM, Constantine Shulyupin wrote:
Hi,
I develop LDT - Linux Driver Template. It can used as starting pint of
development custom device driver and for learning development of Linux
device drivers.
Documentation: https://github.com/makelinux/ldt/blob/master/README.md
The driver uses following Linux facilities: module, platform driver,
file operations (read/write, mmap, ioctl, blocking and nonblocking
mode, polling), kfifo, completion, interrupt, tasklet, work, kthread,
timer, misc device, proc fs, UART 0x3f8, HW loopback, SW loopback,
ftracer.
To test the driver just run
git clone git://github.com/makelinux/ldt.git&& cd ldt&& ./ldt-test
You feedback, suggestions, discussions, recommendations patched will
be greatly appreciated!
I don't write many drivers, but this seems like it's very useful
as example code. I think there might even be value in mainlining
it. In my opinion, a lot of copy-and-paste happens in kernel
development, but it's hard to know if the code being copied
really implements the "best practices" for using the different
facilities and APIs in the kernel. (I was disappointed when
I found out that the scull device driver sample from the
Linux Device Drivers book wasn't mainlined.)
Have you tried to mainline this?
Whether it gets mainlined or not, it's probably worth referencing
as example code. Maybe we should put up a wiki page directing
people to it?
-- Tim
_______________________________________________
Celinux-dev mailing list
[email protected]
https://lists.celinuxforum.org/mailman/listinfo/celinux-dev