Re: proposal to delete the skeleton driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/8/21 12:13 PM, Oliver Neukum wrote:

On 07.12.21 23:43, Theodore Y. Ts'o wrote:
In addition to your idea, I wonder if we could point people at some
simple "real world" drivers that people could look at which are (a)
simple, and (b) relatively clean and free of anti-patterns that we
don't want driver authors to copy pasta into their drivers.
I will try to. It may come as a surprise but if we want to limit
ourselves to drivers implementing a classical character device,
the number of recent examples dwindles rapidly.

And I think we should stick to such devices to give examples
comprehensible and relevant to as many people as possible.

     Regards
         Oliver


I like drivers/usb/misc/usblcd.c as one simple example. An older version of usb-skeleton was the template. It is using urbs only for writing.

Since no driver seems to cover everything we may need two examples of maintained drivers as transfer performance and interrupt endpoints are not relevant for usblcd.

Regards
Philipp



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux