Re: Is there any tool can format source code according to kernel coding rule?

2015-08-02 Thread Aruna Hewapathirane
> Hi all, > > I am just wondering whether there is a script/tool which format source code > according to kernel coding rule automatically? Such as tab, space, brace, > etc. > > Thanks very much in advance! > > Best Regards > Nan Xiao If your using vi(m) in command mode type gg=G this will indent y

Re: Is there any tool can format source code according to kernel coding rule?

2015-08-02 Thread Chetan Nanda
On Mon, Aug 3, 2015 at 9:05 AM, Nan Xiao wrote: > Hi all, > > I am just wondering whether there is a script/tool which format source > code > according to kernel coding rule automatically? Such as tab, space, brace, > etc. > > Thanks very much in advance! > Bit of googleing give you the lots of

Is there any tool can format source code according to kernel coding rule?

2015-08-02 Thread Nan Xiao
Hi all, I am just wondering whether there is a script/tool which format source code according to kernel coding rule automatically? Such as tab, space, brace, etc. Thanks very much in advance! Best Regards Nan Xiao ___ Kernelnewbies mailing list Kerneln

Re: Fwd: USB Driver - Device No Response standard compliant

2015-08-02 Thread Christian N
>> I know that the presentation of the message is the responsibility of >> the application (user space), but to do this is necesary an event from >> usb driver (I think it). >A timeout with no activity at all can do it.. That's Userspace C 101 - >select() with a timeout... To implement a timout f

Re: how it the linux implementation of double linked lists useful

2015-08-02 Thread Robert P. J. Day
On Sun, 2 Aug 2015, Ahmed Soliman wrote: > while reading through linux/list.h I noticed that the linked list > structure is really simple with only pointer to the previous node and > pointer to next node with no other data (It can't handle anything > inside it ) I started to wonder how such linked

how it the linux implementation of double linked lists useful

2015-08-02 Thread Ahmed Soliman
while reading through linux/list.h I noticed that the linked list structure is really simple with only pointer to the previous node and pointer to next node with no other data (It can't handle anything inside it ) I started to wonder how such linked list can be useful to the kernel or (useful in ge

Re: How can I locate a struct's defination?

2015-08-02 Thread Daniel Baluta
On Sun, Aug 2, 2015 at 8:01 AM, Navy Cheng wrote: > Hi, > I use emacs and tags to read kernel source. The tags is create by > > make tags > > in the kernel source tree. When I want to find a struct's defination, > something goes wrong. For example: when I find *dentry* , the first > result is:

Writing a driver for the Corsair K90 keyboard

2015-08-02 Thread Clément Vuchener
Hello. I first sent this email to kernel-mentors, but I got no response. So I am sending it again here. I wrote a driver for the Corsair K90 keyboard, it is my first kernel development and I have a few questions about how to properly do a few things (mainly interactions with the user space).