On Wed, 19 Dec 2007 22:35:36 +0100 Rene Herman <rene.herman@xxxxxxxxxxxx> wrote: :>On 19-12-07 21:31, Binyamin Dissen wrote: :>> I am looking at the kernel and I see a call to foobar. :>> How can I easily determine which source file has the foobar code? :>The easiest way is using an editor that supports "tags". After you run "make :>tags" in the root of the source tree (and have the ctags program installed) :>"vim -t foobar" will take you to the definition of the "foobar" function. I issued MAKE TAGS (which is taking a while). What file(s) does it create? Is it something that I can copy and browse in a windows environment? :>Well, to _a_ definition of foobar at least. It doesn't work all that well :>when there's multiple things named foobar, which happens quite a lot. :>The -t command line option is not the main tag usage in vim -- htting Ctrl-[ :>with the cursor on "foobar" is. Ctrl-T to return to the previous spot. ":ts" :>to select from a list of matching tags, and ":help tags" for more. :>See "make TAGS" for equivalent Emacs functionality, "cscope" for another :>useful tool, "lxr" for generating hyperlinked HTML from the tree... -- Binyamin Dissen <bdissen@xxxxxxxxxxxxxxxxxx> http://www.dissensoftware.com Director, Dissen Software, Bar & Grill - Israel Should you use the mailblocks package and expect a response from me, you should preauthorize the dissensoftware.com domain. I very rarely bother responding to challenge/response systems, especially those from irresponsible companies. -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ