How to browse the code
From: Daniel. <hidden>
Date: 2017-04-13 11:41:18
ctags + cscope + vim The Makefile has targets for indexing the kernel.. Sometimes "find -exec grep" helps... I will take a look in opengrok Em 13/04/2017 7:40 AM, "manty kuma" [off-list ref] escreveu:
Here you can see where sk_buff structure is delared. http://androidxref.com/kernel_3.18/xref/include/linux/skbuff.h#506 May be you want to get familiar on how to use opengroks interface by seeing some youtube video or some online documents... Whatever you want to do wrt to source code browsing, this can do it for you very quickly. On Thu, Apr 13, 2017 at 6:24 AM, Code Soldier1 [off-list ref] wrote:quoted
Thanks a lot. I am still not able to lookup structures, such as sk_buff and where does it's fields get set/used. On Tue, Apr 11, 2017 at 4:56 PM, manty kuma [off-list ref] wrote:quoted
I like Opengrok. It is insanely fast in giving search results. Howeveritquoted
takes sometime to setup and you need to index it before the first use. If you are ok with browsing someold kernels, then you can use this link http://androidxref.com/kernel_3.18/ which is maintained privately. If you want to use opengrok on more recent linux releases, you may havetoquoted
set it up yourself. On Wed, Apr 12, 2017 at 5:13 AM, Mandeep Sandhu [off-list ref] wrote:quoted
quoted
I am looking for something that can list all the places that a certain field of a certain structure is used. For example, sk_buff has a field called destructor, but so do many other data structures. How do I search for places where just the destructor field of sk_buff.I think lxr has an identifier & free-text search (powered by google).Ifquoted
quoted
that doesn't do it for you, you can go "old school" and try cscopemaybe?quoted
quoted
HTH, -mandeepquoted
Thanks a lot. -- CS1 _______________________________________________ Kernelnewbies mailing list Kernelnewbies at kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies_______________________________________________ Kernelnewbies mailing list Kernelnewbies at kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies-- CS1_______________________________________________ Kernelnewbies mailing list Kernelnewbies at kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20170413/e37fe8b3/attachment-0001.html