From mboxrd@z Thu Jan 1 00:00:00 1970 From: anish198519851985@gmail.com (anish singh) Date: Tue, 3 May 2011 20:14:29 +0530 Subject: looking for simple module/driver programming examples in source tree In-Reply-To: References: <20110503122800.GA24483@kroah.com> Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Tue, May 3, 2011 at 7:50 PM, Javier Martinez Canillas < martinez.javier@gmail.com> wrote: > > > >> i'm also interesting in collecting examples of documentation for > >> basic kernel programming concepts. sometimes, there are excellent > >> examples in the source Documentation/ directory, sometimes not. > > > > I think a useful work would be to keep an up-to-date version for the > example drivers found in Linux Device Drivers 3. Despite being a few > years old, the book is a valuable source of information regarding > kernel drivers development. > > There are lots of repositories with examples updated to many kernel > versions. A few months ago I needed the examples updated to 2.6.32 and > found repositories for older kernels. I sent a few patches to the > author of the most up-to-date repository I found (I think It was > 2.6.28) but didn't have any feedback so I (also) started my own git > tree with examples to kernel versions 2.6.32, 2.6.35 and 2.6.38. > Yes https://github.com/martinezjavier/ldd3 is very helpful indeed,other day someone was asking(on kernelnewbies IRC) for some examples not compiling in latest kernel and i gave this link which helped. > > Maybe instead having so many repositories all over the Internet trying > to do the same. It will be good to have a kernelnewbies oficial > repository for virtual device drivers. These drivers can be a good > starting point for someone doing real driver development (something > like the usb-skeleton.c for usb drivers). Also it could be a > playground for people eager to learn and start contributing with more > examples. > > -- > Javier Mart?nez Canillas > (+34) 682 39 81 69 > PhD Student in High Performance Computing > Computer Architecture and Operating System Department (CAOS) > Universitat Aut?noma de Barcelona > Barcelona, Spain > > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies at kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110503/cbb2e213/attachment-0001.html