All of lore.kernel.org
 help / color / mirror / Atom feed
From: john@jjdev.com (John de la Garza)
To: kernelnewbies@lists.kernelnewbies.org
Subject: unable to find function definition
Date: Tue, 26 Apr 2016 18:35:50 -0700	[thread overview]
Message-ID: <20160427013549.GA9761@crux> (raw)
In-Reply-To: <CAOsEZoi==uBocmEFpi2N9BteDWrf_7_PxmwDpbFXo9zngjHXrQ@mail.gmail.com>

On Tue, Apr 26, 2016 at 02:00:02PM +0530, Jay Aurabind wrote:
> On 20 April 2016 at 12:56, Cihangir Akturk <cakturk@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 ?

I've been able to print the address of the functions (once it has
been assigned), then check the System.map for the function name.

  parent reply	other threads:[~2016-04-27  1:35 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-20  6:17 unable to find function definition Nijam Haider
2016-04-20  7:26 ` Cihangir Akturk
2016-04-26  8:30   ` Jay Aurabind
2016-04-26  8:50     ` Gadre Nayan
2016-04-26 10:45       ` Silvan Jegen
2016-04-26 12:56         ` Jay Aurabind
2016-04-26 13:31           ` Silvan Jegen
2016-04-26 15:24             ` Valdis.Kletnieks at vt.edu
2016-04-26 15:33               ` Silvan Jegen
2016-04-27 20:26         ` Jakub Sitnicki
2016-04-28  4:23           ` Anupam Kapoor
2016-04-27  1:35     ` John de la Garza [this message]
2016-04-27  3:05       ` Jay Aurabind
2016-04-27  3:10         ` nizam haider

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160427013549.GA9761@crux \
    --to=john@jjdev.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.