<div dir="ltr"><div class="gmail_extra">Hi Saket Sinha,</div><div class="gmail_extra"><br></div><div class="gmail_extra">I am also kernel newbie, I started Eucalyptula challenge challenge 4 months back, till now I have completed 4 tasks and submitted result for 5th task two months back, till now I have not received any response from little.</div><div class="gmail_extra"><br></div><div class="gmail_extra">So during this time I wanted occupy with other kernel stuff, can please share how to proceed with "TODOs in the staging area drive" you mentioned below.It will be more helpful for me and other newbies to involve in kernel development activity.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks&regards,</div><div class="gmail_extra">Madhu</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_quote">On Sun, Aug 7, 2016 at 8:24 PM, <span dir="ltr"><<a href="mailto:kernelnewbies-request@kernelnewbies.org" target="_blank">kernelnewbies-request@kernelnewbies.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Send Kernelnewbies mailing list submissions to<br>
<a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.<wbr>org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">https://lists.kernelnewbies.<wbr>org/mailman/listinfo/<wbr>kernelnewbies</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:kernelnewbies-request@kernelnewbies.org">kernelnewbies-request@<wbr>kernelnewbies.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:kernelnewbies-owner@kernelnewbies.org">kernelnewbies-owner@<wbr>kernelnewbies.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Kernelnewbies digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. one more new Bie (Anurag Ranjan)<br>
2. Re: one more new Bie (Saket Sinha)<br>
3. Re: one more new Bie (Fran?ois)<br>
4. Re: one more new Bie (Giedrius Statkevi?ius)<br>
5. Linux Coding style template (Charls D. Chap)<br>
6. Re: Linux Coding style template (Greg KH)<br>
7. Re: Are these books outdated? (John Chludzinski)<br>
8. Re: Linux Coding style template (Charls D. Chap)<br>
<br>
<br>
------------------------------<wbr>------------------------------<wbr>----------<br>
<br>
Message: 1<br>
Date: Sat, 6 Aug 2016 21:43:47 +0530<br>
From: Anurag Ranjan <<a href="mailto:anurag.eee@gmail.com">anurag.eee@gmail.com</a>><br>
Subject: one more new Bie<br>
To: <a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.<wbr>org</a><br>
Message-ID:<br>
<<a href="mailto:CANeted3zQ8vMbk4Nzk77OSz8jaPFRB28bymJh-egSg-SCRcerA@mail.gmail.com">CANeted3zQ8vMbk4Nzk77OSz8jaPF<wbr>RB28bymJh-egSg-SCRcerA@mail.<wbr>gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi All,<br>
<br>
I am new to this list. Please help me with any new bie helper guide.<br>
<br>
How do we get work assigned here? or this is just a query forum.<br>
<br>
Regards,<br>
Anurag<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160806/d52945b7/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.kernelnewbies.<wbr>org/pipermail/kernelnewbies/<wbr>attachments/20160806/d52945b7/<wbr>attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Sat, 6 Aug 2016 21:54:59 +0530<br>
From: Saket Sinha <<a href="mailto:saket.sinha89@gmail.com">saket.sinha89@gmail.com</a>><br>
Subject: Re: one more new Bie<br>
To: Anurag Ranjan <<a href="mailto:anurag.eee@gmail.com">anurag.eee@gmail.com</a>><br>
Cc: kernelnewbies <<a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.<wbr>org</a>><br>
Message-ID:<br>
<CAK25hWN6Pets=<a href="mailto:e9HDFTyah9LF6CkB8gXX50JNLjmwG1wd-tb1g@mail.gmail.com">e9HDFTyah9LF6Ck<wbr>B8gXX50JNLjmwG1wd-tb1g@mail.<wbr>gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi Anurag,<br>
<br>
Welcome to the list. This is a query forum but we can surely help you with<br>
getting started.<br>
<br>
Take up Eucalyptus challenge or the TODOs in the staging area driver if<br>
you're interested in kernel development.<br>
<br>
Let me know if you're looking for something specific.<br>
<br>
Regards,<br>
Saket Sinha<br>
<br>
On 06-Aug-2016 9:47 PM, "Anurag Ranjan" <<a href="mailto:anurag.eee@gmail.com">anurag.eee@gmail.com</a>> wrote:<br>
<br>
> Hi All,<br>
><br>
> I am new to this list. Please help me with any new bie helper guide.<br>
><br>
> How do we get work assigned here? or this is just a query forum.<br>
><br>
> Regards,<br>
> Anurag<br>
><br>
> ______________________________<wbr>_________________<br>
> Kernelnewbies mailing list<br>
> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.<wbr>org</a><br>
> <a href="https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">https://lists.kernelnewbies.<wbr>org/mailman/listinfo/<wbr>kernelnewbies</a><br>
><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160806/7be1684e/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.kernelnewbies.<wbr>org/pipermail/kernelnewbies/<wbr>attachments/20160806/7be1684e/<wbr>attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Sat, 6 Aug 2016 18:48:28 +0200<br>
From: Fran?ois <<a href="mailto:fser@code-libre.org">fser@code-libre.org</a>><br>
Subject: Re: one more new Bie<br>
To: <a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.<wbr>org</a><br>
Message-ID: <20160806164827.<wbr>hf7wzw6wkzw5flb5@sith><br>
Content-Type: text/plain; charset=iso-8859-1<br>
<br>
On Sat, Aug 06, 2016 at 09:54:59PM +0530, Saket Sinha wrote:<br>
> Hi Anurag,<br>
><br>
> Welcome to the list. This is a query forum but we can surely help you with<br>
> getting started.<br>
><br>
> Take up Eucalyptus challenge or the TODOs in the staging area driver if<br>
> you're interested in kernel development.<br>
<br>
I think you're talking about eudyptula [1], unfortunayelly, it seems that little<br>
has been out of business for quite a while now.<br>
<br>
[1] <a href="http://eudyptula-challenge.org/" rel="noreferrer" target="_blank">http://eudyptula-challenge.<wbr>org/</a><br>
<br>
@Anurag: welcome here :)<br>
<br>
--<br>
Fran?ois<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Sat, 6 Aug 2016 20:02:28 +0300<br>
From: Giedrius Statkevi?ius <<a href="mailto:giedrius.statkevicius@gmail.com">giedrius.statkevicius@gmail.<wbr>com</a>><br>
Subject: Re: one more new Bie<br>
To: Saket Sinha <<a href="mailto:saket.sinha89@gmail.com">saket.sinha89@gmail.com</a>><br>
Cc: Anurag Ranjan <<a href="mailto:anurag.eee@gmail.com">anurag.eee@gmail.com</a>>, kernelnewbies<br>
<<a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.<wbr>org</a>><br>
Message-ID: <20160806170228.GB20321@tyrael<wbr>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
Hi Saket,<br>
<br>
On Sat, Aug 06, 2016 at 09:54:59PM +0530, Saket Sinha wrote:<br>
> Hi Anurag,<br>
><br>
> Welcome to the list. This is a query forum but we can surely help you with<br>
> getting started.<br>
><br>
> Take up Eucalyptus challenge or the TODOs in the staging area driver if<br>
> you're interested in kernel development.<br>
><br>
> Let me know if you're looking for something specific.<br>
><br>
> Regards,<br>
> Saket Sinha<br>
<br>
Heh... it's called the eudyptula challenge, not the eucalyptus challenge. Also,<br>
please don't top-post.<br>
<br>
A: Because this is annoying<br>
Q: Why?<br>
<br>
><br>
> On 06-Aug-2016 9:47 PM, "Anurag Ranjan" <<a href="mailto:anurag.eee@gmail.com">anurag.eee@gmail.com</a>> wrote:<br>
><br>
> > Hi All,<br>
> ><br>
> > I am new to this list. Please help me with any new bie helper guide.<br>
> ><br>
> > How do we get work assigned here? or this is just a query forum.<br>
> ><br>
> > Regards,<br>
> > Anurag<br>
> ><br>
<br>
<br>
--<br>
Giedrius<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Sun, 7 Aug 2016 00:22:03 +0300<br>
From: "Charls D. Chap" <<a href="mailto:chapcharls@gmail.com">chapcharls@gmail.com</a>><br>
Subject: Linux Coding style template<br>
To: <a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.<wbr>org</a><br>
Message-ID:<br>
<CAA6eV_ThVicvXa_c+EKH_<wbr>gVMrm57OEKoKeAK65J5Z7d=+<a href="mailto:WykkQ@mail.gmail.com">WykkQ@<wbr>mail.gmail.com</a>><br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
I want to transform some C source files. following Linux kernel coding style.<br>
<br>
- Does script/Lindent STRICTLY follows all linux kernel coding style rules?<br>
- What scripts/templates do you use/suggest for elegant code style<br>
with the fact that<br>
we are talking about Linux Kernel Coding?<br>
<br>
<br>
The GNU guys suggest indent with the following parameters:<br>
-nbad -bap -nbc -bbo -hnl -br -brs -c33 -cd33 -ncdb -ce -ci4<br>
-cli0 -d0 -di1 -nfc1 -i8 -ip0 -l80 -lp -npcs -nprs -npsl -sai<br>
-saf -saw -ncs -nsc -sob -nfca -cp33 -ss -ts8 -il1<br>
<br>
On the other hand:<br>
Linux/script/Lindent contains:<br>
-npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1<br>
<br>
Differences so far:<br>
1)<br>
indent with gnu parameters inserts a space on labels eg.<br>
err: vs<br>
err:<br>
<br>
2)<br>
indent with gnu parameters inserts 26 spaces<br>
#endif /*<br>
something like this*/<br>
<br>
<br>
So probably gnu site is outdated?<br>
<br>
<br>
Also, I have noticed that they both fail theyto leave the empty line<br>
of a label empty<br>
For example, err: code<br>
to<br>
err:<br>
code<br>
<br>
What does the coding style suggests in this case?<br>
<br>
Have you found, other cases such the above?<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Sun, 7 Aug 2016 06:39:48 +0200<br>
From: Greg KH <<a href="mailto:greg@kroah.com">greg@kroah.com</a>><br>
Subject: Re: Linux Coding style template<br>
To: "Charls D. Chap" <<a href="mailto:chapcharls@gmail.com">chapcharls@gmail.com</a>><br>
Cc: <a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.<wbr>org</a><br>
Message-ID: <<a href="mailto:20160807043948.GA7711@kroah.com">20160807043948.GA7711@kroah.<wbr>com</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
On Sun, Aug 07, 2016 at 12:22:03AM +0300, Charls D. Chap wrote:<br>
> I want to transform some C source files. following Linux kernel coding style.<br>
><br>
> - Does script/Lindent STRICTLY follows all linux kernel coding style rules?<br>
> - What scripts/templates do you use/suggest for elegant code style<br>
> with the fact that<br>
> we are talking about Linux Kernel Coding?<br>
><br>
><br>
> The GNU guys suggest indent with the following parameters:<br>
> -nbad -bap -nbc -bbo -hnl -br -brs -c33 -cd33 -ncdb -ce -ci4<br>
> -cli0 -d0 -di1 -nfc1 -i8 -ip0 -l80 -lp -npcs -nprs -npsl -sai<br>
> -saf -saw -ncs -nsc -sob -nfca -cp33 -ss -ts8 -il1<br>
><br>
> On the other hand:<br>
> Linux/script/Lindent contains:<br>
> -npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1<br>
><br>
> Differences so far:<br>
> 1)<br>
> indent with gnu parameters inserts a space on labels eg.<br>
> err: vs<br>
> err:<br>
><br>
> 2)<br>
> indent with gnu parameters inserts 26 spaces<br>
> #endif /*<br>
> something like this*/<br>
><br>
><br>
> So probably gnu site is outdated?<br>
<br>
Probably, start with running Lindent, and then fix up the mess it leaves<br>
by hand. Shouldn't take more than a day to do it.<br>
<br>
good luck!<br>
<br>
greg k-h<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 7<br>
Date: Sun, 07 Aug 2016 09:29:01 -0400<br>
From: John Chludzinski <<a href="mailto:john.chludzinski@vivaldi.net">john.chludzinski@vivaldi.net</a>><br>
Subject: Re: Are these books outdated?<br>
To: Aleksander Alekseev <<a href="mailto:afiskon@devzen.ru">afiskon@devzen.ru</a>><br>
Cc: <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.<wbr>org</a><br>
Message-ID: <<a href="mailto:156b7e5e8149927ea9f25e2c12d46aac@mail.vivaldi.net">156b7e5e8149927ea9f25e2c12d46<wbr>aac@mail.vivaldi.net</a>><br>
Content-Type: text/plain; charset=US-ASCII; format=flowed<br>
<br>
Linux Kernel Development by Robert Love<br>
<br>
On 2016-07-14 07:01, Aleksander Alekseev wrote:<br>
> Hello<br>
><br>
> I'm a full-time *nix C developer. I have a pretty good idea how<br>
> operating systems work. Still I would like learn more about Linux<br>
> internals in particular, write a few device drivers, maybe some<br>
> patches to kernel itself, etc. Here are a few books I've found:<br>
><br>
> * Linux Kernel Development, 3rd Edition (2010)<br>
> * Understanding the Linux Kernel, 3rd Edition (2005)<br>
> * Linux Device Drivers, 3rd Edition (2005)<br>
><br>
> Could you tell me please, are these books considered worth reading in<br>
> year 2016 or they are completely out of date? Perhaps there are some<br>
> newer books and/or tutorials you could recommend?<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 8<br>
Date: Sun, 7 Aug 2016 17:53:15 +0300<br>
From: "Charls D. Chap" <<a href="mailto:chapcharls@gmail.com">chapcharls@gmail.com</a>><br>
Subject: Re: Linux Coding style template<br>
To: Greg KH <<a href="mailto:greg@kroah.com">greg@kroah.com</a>><br>
Cc: <a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.<wbr>org</a><br>
Message-ID:<br>
<<a href="mailto:CAA6eV_RiN0wZKA12PKHHiR3s5gzgj7p56Q4Td4qGS%2BWYN%2Bohiw@mail.gmail.com">CAA6eV_<wbr>RiN0wZKA12PKHHiR3s5gzgj7p56Q4T<wbr>d4qGS+WYN+ohiw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
On Sun, Aug 7, 2016 at 7:39 AM, Greg KH <<a href="mailto:greg@kroah.com">greg@kroah.com</a>> wrote:<br>
> On Sun, Aug 07, 2016 at 12:22:03AM +0300, Charls D. Chap wrote:<br>
>> I want to transform some C source files. following Linux kernel coding style.<br>
<br>
My questions are more generic, i am interesting in an automatic way for<br>
identation! And also, i am interesting to what kernel developers will<br>
do in the following cases, so i am forwarding again the email.<br>
<br>
<br>
please take a look to this example<br>
width is 90, what a kernel developer will do? spliti in two lines, or<br>
leave it us it is,<br>
cause i think it's more readable, in this way<br>
qq->run = mmap(NULL, mmap_size, PROT_READ | PROT_WRITE, MAP_SHARED,<br>
qq->vcpu, 0);<br>
<br>
<br>
Also, have you find a way to tell indent not to indent, struct definitions?<br>
In .h, when you have a huge structure definition, it's more readable,<br>
to have it's struct friend one below the other, aligned!<br>
struct kvm_mem_bank {<br>
struct list_head list;<br>
u64 guest_phys_addr;<br>
void *host_addr;<br>
u64 size;<br>
};<br>
<br>
This also counts for variables initiliazation<br>
int x = 0<br>
char *dog = animal->dog->name;<br>
char *cat = animal->cat->name;<br>
char * elephant = animal->elephant->name;<br>
<br>
Any ideas?<br>
<br>
<br>
<br>
- Does script/Lindent STRICTLY follows all linux kernel coding style rules?<br>
- What scripts/templates do you use/suggest for elegant code style<br>
with the fact that<br>
we are talking about Linux Kernel Coding?<br>
<br>
<br>
The GNU guys suggest indent with the following parameters:<br>
-nbad -bap -nbc -bbo -hnl -br -brs -c33 -cd33 -ncdb -ce -ci4<br>
-cli0 -d0 -di1 -nfc1 -i8 -ip0 -l80 -lp -npcs -nprs -npsl -sai<br>
-saf -saw -ncs -nsc -sob -nfca -cp33 -ss -ts8 -il1<br>
<br>
On the other hand:<br>
Linux/script/Lindent contains:<br>
-npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1<br>
<br>
Differences so far:<br>
1)<br>
indent with gnu parameters inserts a space on labels eg.<br>
err: vs<br>
err:<br>
<br>
2)<br>
indent with gnu parameters inserts 26 spaces<br>
#endif /*<br>
something like this */<br>
<br>
<br>
So probably gnu site is outdated?<br>
<br>
<br>
Also, I have noticed that they both fail theyto leave the empty line<br>
of a label empty<br>
For example, err: code<br>
to<br>
err:<br>
code<br>
<br>
What does the coding style suggests in this case?<br>
<br>
Have you found, other cases such the above?<br>
<br>
<br>
<br>
------------------------------<br>
<br>
______________________________<wbr>_________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.<wbr>org</a><br>
<a href="https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">https://lists.kernelnewbies.<wbr>org/mailman/listinfo/<wbr>kernelnewbies</a><br>
<br>
<br>
End of Kernelnewbies Digest, Vol 69, Issue 11<br>
******************************<wbr>***************<br>
</blockquote></div><br></div></div>