[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: getifaddrs
mato wrote:
Sometimes, tag may be helpful and quick.
e.g
cd /the/path/to/kernel/src
ctags -R *
if we want to see the definition of iget(), try
vi -t iget
in linux-2.4.7-10, iget() has multiple definition. you can iterate
them with ":tn" (for next tag) and
":tp" (for prev tag).
You can even ignore case, take as an example, if you want to examine
the def of function My_Func(),
but at that time, you are not quite sure whether the 1st char of
My_Func() is in upper case of lower case.
you can
o. invoke vi
o. if tags does not reside at `pwd`, invoke this command in vi:
:set tag=/the/path/to/the/pertinent/tags
o. examine the 1st definition with this vi command:
:ta my_func
The command "etags" also works fine with emacs. However, since I am
rather stupid,
I am clusy with that excellent tool.
s.x.yang
>Hi,
>
>you can try this command:
> get -r \"getifaddrs\" /usr/src/linux
>
>Mato
>--
>Kernelnewbies: Help each other learn about the Linux kernel.
>Archive: http://mail.nl.linux.org/kernelnewbies/
>FAQ: http://kernelnewbies.org/faq/
>
>
>
>
>
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/