<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 12, 2017 at 2:46 PM, Mandeep Sandhu <span dir="ltr"><<a href="mailto:mandeepsandhu.chd@gmail.com" target="_blank">mandeepsandhu.chd@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class=""><div class="gmail_extra">On Wed, Apr 12, 2017 at 2:41 PM, Code Soldier1 <span dir="ltr"><<a href="mailto:codesoldier1@gmail.com" target="_blank">codesoldier1@gmail.com</a>></span> wrote:<br></div></span><div class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Yes that is possible but it is very time consuming. Let's say I get<br>
500 hits ? Try searching for destructor in linux kernel code. I am<br>
only interested in the one that is defined in sk_buff.<br></blockquote><div><br></div></span><div>Look at cscope & ctags for such queries. Both tools will list all instances where the said identifier is declared. If a field is defined in multiple structs, you will get multiple results from which you have to sift through (it will still be less than free-text search that you'd do on lxr though).<br></div><div><br></div><div>Also, please reply to the list (and not to me directly). Others on this list might have better suggestions.</div></div></div></div></blockquote><div><br></div><div>(and I myself forgot to CC the list! :P)</div><div><br></div><div>-mandeep</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>HTH,</div><div>-mandeep</div><div><div class="h5"><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
On Wed, Apr 12, 2017 at 2:28 PM, Mandeep Sandhu<br>
<<a href="mailto:mandeepsandhu.chd@gmail.com" target="_blank">mandeepsandhu.chd@gmail.com</a>> wrote:<br>
> On Wed, Apr 12, 2017 at 2:25 PM, Code Soldier1 <<a href="mailto:codesoldier1@gmail.com" target="_blank">codesoldier1@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Thanks. This does not completely solve my issue. I am looking for<br>
>> something that can associate a field name with the structure.<br>
><br>
><br>
> Well, you can search for a field's use using free-text search, then looks at<br>
> the line of code to figure out what struct it's part of, no? :)<br>
><br>
> -mandeep<br>
><br>
><br>
>><br>
>><br>
>> On Tue, Apr 11, 2017 at 1:13 PM, Mandeep Sandhu<br>
>> <<a href="mailto:mandeepsandhu.chd@gmail.com" target="_blank">mandeepsandhu.chd@gmail.com</a>> wrote:<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<br>
>> > 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>
>><br>
<span class="m_5361735138519067775gmail-HOEnZb"><font color="#888888">>><br>
>> --<br>
>> CS1<br>
><br>
><br>
<br>
<br>
<br>
--<br>
CS1<br>
</font></span></blockquote></div></div></div><br></div></div>
</blockquote></div><br></div></div>