unable to find function definition

Gadre Nayan gadrenayan at gmail.com
Tue Apr 26 04:50:35 EDT 2016


Ctags can help. Ctags -R on the entire source.
On 26 Apr 2016 2:19 p.m., "Jay Aurabind" <jay.aurabind at gmail.com> wrote:

> On 20 April 2016 at 12:56, Cihangir Akturk <cakturk at gmail.com> wrote:
> > On Wed, Apr 20, 2016 at 06:17:38AM +0000, 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 the same anywhere.
> >
> > Hi,
> >
> > That is a function pointer, so you should search assignments to
> > that pointer. That way you can find the real function you are
> > looking for.
>
> I've spotted such usages in a lot of places, outside the kernel as
> well. Just wanted know if there is a smarted way of finding the
> assignments, like some tools or any other tips which people could use
> to make life easier ?
>
> >
> > _______________________________________________
> > Kernelnewbies mailing list
> > Kernelnewbies at kernelnewbies.org
> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
>
> --
>
> Thanks and Regards,
> Aurabindo J
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160426/02bff7d7/attachment.html 


More information about the Kernelnewbies mailing list