unable to find function definition

Silvan Jegen me at sillymon.ch
Tue Apr 26 09:31:51 EDT 2016


Am 2016-04-26 14:56, schrieb Jay Aurabind:
> On 26 April 2016 at 16:15, Silvan Jegen <me at sillymon.ch> wrote:
>> Am 2016-04-26 10:50, schrieb Gadre Nayan:
>>> 
>>> Ctags can help. Ctags -R on the entire source.
>> 
>> 
>> In the Kernel Makefile there is actually a target for this. It's 
>> called
>> either 'tags' or 'tag' so
>> 
>> make tags [or tag]
>> 
>> should create the ctag file for you.
> 
> I use ctags with vim. Mostly it takes me to declaration of the
> function pointer. Then i go grep for that function and look for its
> assignment. I was wondering if there is some plugin or script which
> can find assignments to such function pointers.

A simple but naive approach would be a grep command like this.

grep "function_pointer =" `find . -iname '*.c' -o -iname '*.h'`


Cheers,

Silvan



More information about the Kernelnewbies mailing list