<div dir="auto">ctags + cscope + vim<div dir="auto"><br></div><div dir="auto">The Makefile has targets for indexing the kernel.. Sometimes "find -exec grep" helps... I will take a look in opengrok</div></div><div class="gmail_extra"><br><div class="gmail_quote">Em 13/04/2017 7:40 AM, "manty kuma" <<a href="mailto:mantykuma@gmail.com">mantykuma@gmail.com</a>> escreveu:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Here you can see where sk_buff structure is delared.<br><a href="http://androidxref.com/kernel_3.18/xref/include/linux/skbuff.h#506" target="_blank">http://androidxref.com/kernel_<wbr>3.18/xref/include/linux/<wbr>skbuff.h#506</a><br><br></div>May be you want to get familiar on how to use opengroks interface by seeing some youtube video or some online documents...<br><br></div>Whatever you want to do wrt to source code browsing, this can do it for you very quickly.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 13, 2017 at 6:24 AM, Code Soldier1 <span dir="ltr"><<a href="mailto:codesoldier1@gmail.com" target="_blank">codesoldier1@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks a lot. I am still not able to lookup structures, such as<br>
sk_buff and where does it's fields get set/used.<br>
<div class="m_-7633730116528972926HOEnZb"><div class="m_-7633730116528972926h5"><br>
On Tue, Apr 11, 2017 at 4:56 PM, manty kuma <<a href="mailto:mantykuma@gmail.com" target="_blank">mantykuma@gmail.com</a>> wrote:<br>
> I like Opengrok. It is insanely fast in giving search results. However it<br>
> takes sometime to setup and you need to index it before the first use.<br>
><br>
> If you are ok with browsing someold kernels, then you can use this link<br>
> <a href="http://androidxref.com/kernel_3.18/" rel="noreferrer" target="_blank">http://androidxref.com/kernel_<wbr>3.18/</a> which is maintained privately.<br>
><br>
> If you want to use opengrok on more recent linux releases, you may have to<br>
> set it up yourself.<br>
><br>
> On Wed, Apr 12, 2017 at 5:13 AM, Mandeep Sandhu<br>
> <<a href="mailto:mandeepsandhu.chd@gmail.com" target="_blank">mandeepsandhu.chd@gmail.com</a>> wrote:<br>
>>><br>
>>><br>
>>> I am looking for something that can list all the places that a certain<br>
>>> field of a certain structure is used. For example, sk_buff has a field<br>
>>> called destructor, but so do many other data structures. How do I<br>
>>> search for places where just the destructor field of sk_buff.<br>
>><br>
>><br>
>> I think lxr has an identifier & free-text search (powered by google). If<br>
>> that doesn't do it for you, you can go "old school" and try cscope maybe?<br>
>><br>
>> HTH,<br>
>> -mandeep<br>
>><br>
>><br>
>>><br>
>>><br>
>>> Thanks a lot.<br>
>>><br>
>>> --<br>
>>> CS1<br>
>>><br>
>>> ______________________________<wbr>_________________<br>
>>> Kernelnewbies mailing list<br>
>>> <a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.or<wbr>g</a><br>
>>> <a href="https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">https://lists.kernelnewbies.or<wbr>g/mailman/listinfo/kernelnewbi<wbr>es</a><br>
>><br>
>><br>
>><br>
>> ______________________________<wbr>_________________<br>
>> Kernelnewbies mailing list<br>
>> <a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.or<wbr>g</a><br>
>> <a href="https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">https://lists.kernelnewbies.or<wbr>g/mailman/listinfo/kernelnewbi<wbr>es</a><br>
>><br>
><br>
<br>
<br>
<br>
</div></div><span class="m_-7633730116528972926HOEnZb"><font color="#888888">--<br>
CS1<br>
</font></span></blockquote></div><br></div>
<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></blockquote></div></div>