unable to find function definition
Jakub Sitnicki
jsitnicki at gmail.com
Wed Apr 27 16:26:26 EDT 2016
On Tue, Apr 26, 2016 at 12:45 PM CEST, 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.
An alternative would be to use cscope:
$ # build the index (will take a moment)
$ make cscope
$ # find all assignments to a symbol
$ cscope -d -L -9 platform_gpio_blink_set
drivers/leds/leds-gpio.c <global> 130 led_dat->platform_gpio_blink_set = blink_set;
$ # or find all occurrences of a symbol and grep for assignments
$ cscope -d -L -0 platform_gpio_blink_set | grep =
drivers/leds/leds-gpio.c <global> 130 led_dat->platform_gpio_blink_set = blink_set;
The latter, for some reason, runs faster for me.
-Jakub
More information about the Kernelnewbies
mailing list