kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Skb Documentation?
@ 2014-08-14 16:40 Nick Krause
  2014-08-14 16:54 ` leo kirotawa
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Nick Krause @ 2014-08-14 16:40 UTC (permalink / raw)
  To: kernelnewbies

After searching around in the documentation directory, I need no
information on skb data structure and other information relating to
skb
data type. If someone knowns where there is Documentation in the
kernel directory please tell me, otherwise I would be glad to write
up.
Regards Nick

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Skb Documentation?
  2014-08-14 16:40 Skb Documentation? Nick Krause
@ 2014-08-14 16:54 ` leo kirotawa
  2014-08-14 17:42   ` Jerry Snitselaar
  2014-08-14 17:12 ` Valdis.Kletnieks at vt.edu
  2014-08-15  9:17 ` Bjørn Mork
  2 siblings, 1 reply; 8+ messages in thread
From: leo kirotawa @ 2014-08-14 16:54 UTC (permalink / raw)
  To: kernelnewbies

git grep is your friend. :)
http://www.linuxjournal.com/article/1312


On Thu, Aug 14, 2014 at 1:40 PM, Nick Krause <xerofoify@gmail.com> wrote:

> After searching around in the documentation directory, I need no
> information on skb data structure and other information relating to
> skb
> data type. If someone knowns where there is Documentation in the
> kernel directory please tell me, otherwise I would be glad to write
> up.
> Regards Nick
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 

----------------------------------------------
Le?nidas S. Barbosa (Kirotawa)
blog: corecode.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140814/d82767d8/attachment.html 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Skb Documentation?
  2014-08-14 16:40 Skb Documentation? Nick Krause
  2014-08-14 16:54 ` leo kirotawa
@ 2014-08-14 17:12 ` Valdis.Kletnieks at vt.edu
  2014-08-15  9:17 ` Bjørn Mork
  2 siblings, 0 replies; 8+ messages in thread
From: Valdis.Kletnieks at vt.edu @ 2014-08-14 17:12 UTC (permalink / raw)
  To: kernelnewbies

On Thu, 14 Aug 2014 12:40:53 -0400, Nick Krause said:
> After searching around in the documentation directory, I need no
> information on skb data structure and other information relating to

Shouldn't you have done that reading *BEFORE* you started submitting
57 different versions of a patch that messed with skb's?

> otherwise I would be glad to write up.

No.  Please, for FSM's sake, *DON'T* write it up.

We prefer our documentation written by somebody who actually understands
the topic under discussion.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140814/3847fc00/attachment.bin 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Skb Documentation?
  2014-08-14 16:54 ` leo kirotawa
@ 2014-08-14 17:42   ` Jerry Snitselaar
  2014-08-14 18:05     ` Nick Krause
  2014-08-14 18:07     ` Jeff Haran
  0 siblings, 2 replies; 8+ messages in thread
From: Jerry Snitselaar @ 2014-08-14 17:42 UTC (permalink / raw)
  To: kernelnewbies

On Thu Aug 14 14, leo kirotawa wrote:
>    git grep is your friend. :)
>    [1]http://www.linuxjournal.com/article/1312

That and learn to use cscope and/or ctags

Jerry

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Skb Documentation?
  2014-08-14 17:42   ` Jerry Snitselaar
@ 2014-08-14 18:05     ` Nick Krause
  2014-08-14 18:07     ` Jeff Haran
  1 sibling, 0 replies; 8+ messages in thread
From: Nick Krause @ 2014-08-14 18:05 UTC (permalink / raw)
  To: kernelnewbies

On Thu, Aug 14, 2014 at 1:42 PM, Jerry Snitselaar <dev@snitselaar.org> wrote:
> On Thu Aug 14 14, leo kirotawa wrote:
>>    git grep is your friend. :)
>>    [1]http://www.linuxjournal.com/article/1312
>
> That and learn to use cscope and/or ctags
>
> Jerry
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Jerry,
I fixed up my patch and sent it to the kernel newbies list.
If you can't find it I will resend.
Nick

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Skb Documentation?
  2014-08-14 17:42   ` Jerry Snitselaar
  2014-08-14 18:05     ` Nick Krause
@ 2014-08-14 18:07     ` Jeff Haran
  2014-08-14 18:13       ` Nick Krause
  1 sibling, 1 reply; 8+ messages in thread
From: Jeff Haran @ 2014-08-14 18:07 UTC (permalink / raw)
  To: kernelnewbies

> -----Original Message-----
> From: kernelnewbies-bounces at kernelnewbies.org [mailto:kernelnewbies-bounces at kernelnewbies.org] On Behalf Of Jerry
> Snitselaar
> Sent: Thursday, August 14, 2014 10:42 AM
> To: leo kirotawa
> Cc: kernelnewbies
> Subject: Re: Skb Documentation?
> 
> On Thu Aug 14 14, leo kirotawa wrote:
> >    git grep is your friend. :)
> >    [1]http://www.linuxjournal.com/article/1312
> 
> That and learn to use cscope and/or ctags
> 
> Jerry

I've found that the best browser for trying to understand kernel code comes from a commercial source, but you should be able to use it for free. You just need to sign up to create an account and when I did it, it was free. Check out https://scan.coverity.com/. The Coverity browser is C language knowledgeable and the Coverity people regularly do analyses of several open source projects, including Linux.

Where it really shines over tools like cscope or ctags is when you are trying to understand how a given field of a structure is used, or any other case where the same function or variable name is used in several different contexts. For example, let's say you are interested in how the kernel uses the struct sk_buff cb field. If you do a search for "cb" in the kernel sources using cscope, you get hits for a myriad of instances of variables and structure fields named "cb" that have nothing to do with the sk_buff cb field. Weeding out all the false positives is quite tedious and time consuming. But the Coverity browser knows the difference between (struct sk_buff *)->cb and all the cbs that represent callback functions in unrelated code. Big time saver.

Jeff Haran

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Skb Documentation?
  2014-08-14 18:07     ` Jeff Haran
@ 2014-08-14 18:13       ` Nick Krause
  0 siblings, 0 replies; 8+ messages in thread
From: Nick Krause @ 2014-08-14 18:13 UTC (permalink / raw)
  To: kernelnewbies

On Thu, Aug 14, 2014 at 2:07 PM, Jeff Haran <Jeff.Haran@citrix.com> wrote:
>> -----Original Message-----
>> From: kernelnewbies-bounces at kernelnewbies.org [mailto:kernelnewbies-bounces at kernelnewbies.org] On Behalf Of Jerry
>> Snitselaar
>> Sent: Thursday, August 14, 2014 10:42 AM
>> To: leo kirotawa
>> Cc: kernelnewbies
>> Subject: Re: Skb Documentation?
>>
>> On Thu Aug 14 14, leo kirotawa wrote:
>> >    git grep is your friend. :)
>> >    [1]http://www.linuxjournal.com/article/1312
>>
>> That and learn to use cscope and/or ctags
>>
>> Jerry
>
> I've found that the best browser for trying to understand kernel code comes from a commercial source, but you should be able to use it for free. You just need to sign up to create an account and when I did it, it was free. Check out https://scan.coverity.com/. The Coverity browser is C language knowledgeable and the Coverity people regularly do analyses of several open source projects, including Linux.
>
> Where it really shines over tools like cscope or ctags is when you are trying to understand how a given field of a structure is used, or any other case where the same function or variable name is used in several different contexts. For example, let's say you are interested in how the kernel uses the struct sk_buff cb field. If you do a search for "cb" in the kernel sources using cscope, you get hits for a myriad of instances of variables and structure fields named "cb" that have nothing to do with the sk_buff cb field. Weeding out all the false positives is quite tedious and time consuming. But the Coverity browser knows the difference between (struct sk_buff *)->cb and all the cbs that represent callback functions in unrelated code. Big time saver.
>
> Jeff Haran
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
I was using lxr for a while but this looks good. Thanks for the
information Jeff.
If you want to send out some patches for me I have two, one is from today that
I just sent and the other one is hard to find due to be not learning
skbs. I will
resend it to you directly if you like.
Nick

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Skb Documentation?
  2014-08-14 16:40 Skb Documentation? Nick Krause
  2014-08-14 16:54 ` leo kirotawa
  2014-08-14 17:12 ` Valdis.Kletnieks at vt.edu
@ 2014-08-15  9:17 ` Bjørn Mork
  2 siblings, 0 replies; 8+ messages in thread
From: Bjørn Mork @ 2014-08-15  9:17 UTC (permalink / raw)
  To: kernelnewbies

Nick Krause <xerofoify@gmail.com> writes:

> After searching around in the documentation directory, I need no
> information on skb data structure and other information relating to
> skb
> data type. If someone knowns where there is Documentation in the
> kernel directory please tell me, otherwise I would be glad to write
> up.

Instead of repeating myself: https://lkml.org/lkml/2014/7/23/610


Bj?rn

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-08-15  9:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-14 16:40 Skb Documentation? Nick Krause
2014-08-14 16:54 ` leo kirotawa
2014-08-14 17:42   ` Jerry Snitselaar
2014-08-14 18:05     ` Nick Krause
2014-08-14 18:07     ` Jeff Haran
2014-08-14 18:13       ` Nick Krause
2014-08-14 17:12 ` Valdis.Kletnieks at vt.edu
2014-08-15  9:17 ` Bjørn Mork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).