Hi Jeff,<br><br><div class="gmail_quote">On Fri, Dec 16, 2011 at 6:24 PM, Jeff Haran <span dir="ltr"><<a href="mailto:jharan@bytemobile.com">jharan@bytemobile.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">> -----Original Message-----<br>
> From: Javier Martinez Canillas [mailto:<a href="mailto:martinez.javier@gmail.com">martinez.javier@gmail.com</a>]<br>
> Sent: Friday, December 16, 2011 6:04 PM<br>
> To: Jeff Haran<br>
> Cc: Alexandre Courbot; Jimmy Pan; <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
> Subject: Re: Is there a way to build a cross reference with kernel file<br>
><br>
> On Sat, Dec 17, 2011 at 1:58 AM, Jeff Haran <<a href="mailto:jharan@bytemobile.com">jharan@bytemobile.com</a>><br>
> wrote:<br>
> >> -----Original Message-----<br>
> >> From: <a href="mailto:kernelnewbies-bounces@kernelnewbies.org">kernelnewbies-bounces@kernelnewbies.org</a><br>
> [mailto:<a href="mailto:kernelnewbies-">kernelnewbies-</a><br>
> >> <a href="mailto:bounces@kernelnewbies.org">bounces@kernelnewbies.org</a>] On Behalf Of Alexandre Courbot<br>
> >> Sent: Monday, October 24, 2011 7:05 PM<br>
> >> To: Jimmy Pan<br>
> >> Cc: <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
> >> Subject: Re: Is there a way to build a cross reference with kernel<br>
> > file<br>
> >><br>
> >> On Tue, Oct 25, 2011 at 12:00 AM, Jimmy Pan <<a href="mailto:dspjm1@gmail.com">dspjm1@gmail.com</a>><br>
> wrote:<br>
> >> > It seems we can use ctags, while, I don't really know how to<br>
> > implement it.<br>
> >> > I don't want to use the online cross reference every time...<br>
> >><br>
> >> I personally use KDevelop to navigate the kernel. It's not perfect yet<br>
> >> and a little bit tricky to configure correctly, but it's still pretty<br>
> >> efficient and I work on improving it. I wrote about it recently:<br>
> >> <a href="http://www.gnurou.org/code/kdevelop-kernel" target="_blank">http://www.gnurou.org/code/kdevelop-kernel</a><br>
> >><br>
> >> CTags is also known to work well, actually there is even a 'make tags'<br>
> >> target in the kernel's Makefile.<br>
> >><br>
> >> Hope this helps,<br>
> >> Alex.<br>
> ><br>
</div></div>...<br>
<div class="im">> > Has anybody found a tool the solves this kind of problem well?<br>
> > Specifically, given a struct foo containing a field named bar, show me<br>
> > all of the code that references the bar field of struct foos but not the<br>
> > bar fields of other structures nor instances of variables that are<br>
> > themselves named bar.<br></div></blockquote><div><br>It's not free, but I use Visual SlickEdit, and it is capable of doing what you want.<br><a href="http://www.slickedit.com">www.slickedit.com</a><br><br>I tried what you suggested, and clicked on the cb field inside the sk_buff struct and asked for all references to that. I checked through most of what it returned and they all seemed to be valid.<br>
<br></div></div>-- <br>Dave Hylands<br>Shuswap, BC, Canada<br><a href="http://www.davehylands.com" target="_blank">http://www.davehylands.com</a><br>