Re: unable to find function definition

2016-04-27 Thread Anupam Kapoor
> [2016-04-28T01:56:26+0530]: "Jakub Sitnicki" (jakub-sitnicki): ,[ jakub-sitnicki ] | An alternative would be to use cscope: | | $ # build the index (will take a moment) | $ make cscope ` this ! cscope generally just works for way better than other 'manual' mechanisms. since it builds

Re: unable to find function definition

2016-04-27 Thread Jakub Sitnicki
On Tue, Apr 26, 2016 at 12:45 PM CEST, Silvan Jegen 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

Re: unable to find function definition

2016-04-26 Thread Jay Aurabind
On 27 April 2016 at 07:05, John de la Garza wrote: > On Tue, Apr 26, 2016 at 02:00:02PM +0530, Jay Aurabind wrote: >> On 20 April 2016 at 12:56, Cihangir Akturk wrote: >> > On Wed, Apr 20, 2016 at 06:17:38AM +, Nijam Haider wrote: >> >> i was going through the code leds-gpio.c. >> >> i found

Re: unable to find function definition

2016-04-26 Thread nizam haider
Thank you all for replies. sure these are helping a lot. On Wed 27 Apr, 2016 8:35 am Jay Aurabind, wrote: > On 27 April 2016 at 07:05, John de la Garza wrote: > > On Tue, Apr 26, 2016 at 02:00:02PM +0530, Jay Aurabind wrote: > >> On 20 April 2016 at 12:56, Cihangir Akturk wrote: > >> > On Wed,

Re: unable to find function definition

2016-04-26 Thread John de la Garza
On Tue, Apr 26, 2016 at 02:00:02PM +0530, Jay Aurabind wrote: > On 20 April 2016 at 12:56, Cihangir Akturk wrote: > > On Wed, Apr 20, 2016 at 06:17:38AM +, Nijam Haider wrote: > >> i was going through the code leds-gpio.c. > >> i found a function "platform_gpio_blink_set" declared under privat

Re: unable to find function definition

2016-04-26 Thread Silvan Jegen
On Tue, Apr 26, 2016 at 11:24:43AM -0400, valdis.kletni...@vt.edu wrote: > On Tue, 26 Apr 2016 15:31:51 +0200, Silvan Jegen said: > > > A simple but naive approach would be a grep command like this. > > > > grep "function_pointer =" `find . -iname '*.c' -o -iname '*.h'` > > Two better ways: > >

Re: unable to find function definition

2016-04-26 Thread Valdis . Kletnieks
On Tue, 26 Apr 2016 15:31:51 +0200, Silvan Jegen said: > A simple but naive approach would be a grep command like this. > > grep "function_pointer =" `find . -iname '*.c' -o -iname '*.h'` Two better ways: grep -r "function_pointer =' [A-Za-z]* find * -name '*.[ch]' | xargs grep 'function pointe

Re: unable to find function definition

2016-04-26 Thread Silvan Jegen
Am 2016-04-26 14:56, schrieb Jay Aurabind: > On 26 April 2016 at 16:15, Silvan Jegen 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' o

Re: unable to find function definition

2016-04-26 Thread Jay Aurabind
On 26 April 2016 at 16:15, Silvan Jegen 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 cta

Re: unable to find function definition

2016-04-26 Thread Silvan Jegen
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. Cheers, Silvan __

Re: unable to find function definition

2016-04-26 Thread Gadre Nayan
Ctags can help. Ctags -R on the entire source. On 26 Apr 2016 2:19 p.m., "Jay Aurabind" wrote: > On 20 April 2016 at 12:56, Cihangir Akturk wrote: > > On Wed, Apr 20, 2016 at 06:17:38AM +, Nijam Haider wrote: > >> i was going through the code leds-gpio.c. > >> i found a function "platform_gp

Re: unable to find function definition

2016-04-26 Thread Jay Aurabind
On 20 April 2016 at 12:56, Cihangir Akturk wrote: > On Wed, Apr 20, 2016 at 06:17:38AM +, Nijam Haider wrote: >> i was going through the code leds-gpio.c. >> i found a function "platform_gpio_blink_set" declared under private data of >> "gpio_led_data",and was trying to get through this functi

Re: unable to find function definition

2016-04-20 Thread Cihangir Akturk
On Wed, Apr 20, 2016 at 06:17:38AM +, Nijam Haider wrote: > i was going through the code leds-gpio.c. > i found a function "platform_gpio_blink_set" declared under private data of > "gpio_led_data",and was trying to get through this function. But hardly i can > find any link to definition for

unable to find function definition

2016-04-19 Thread Nijam Haider
i was going through the code leds-gpio.c. i found a function "platform_gpio_blink_set" declared under private data of "gpio_led_data",and was trying to get through this function. But hardly i can find any link to definition for the same anywhere. Regards Nijam _