From: Jens Axboe <axboe@suse.de>
To: "Richard B. Johnson" <linux-os@analogic.com>
Cc: raja <vnagaraju@effigent.net>, linux-kernel@vger.kernel.org
Subject: Re: function Named
Date: Thu, 7 Jul 2005 15:56:23 +0200 [thread overview]
Message-ID: <20050707135621.GC24401@suse.de> (raw)
In-Reply-To: <Pine.LNX.4.61.0507070939200.9975@chaos.analogic.com>
On Thu, Jul 07 2005, Richard B. Johnson wrote:
> On Thu, 7 Jul 2005, raja wrote:
>
> >hi,
> > Is there any way to get the function address by only knowing the
> >function Name
> >thanking you,
> >-
>
> printf("%p\n", function()); // User code
> printk("%p\n", function()); // Kernel code
Yup that'll work fine, provided 'function' takes no arguments and
returns its own address.
--
Jens Axboe
next prev parent reply other threads:[~2005-07-07 13:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-07 12:54 function Named raja
2005-07-07 13:43 ` Richard B. Johnson
2005-07-07 13:56 ` Jens Axboe [this message]
2005-07-07 13:59 ` Richard B. Johnson
2005-07-07 13:52 ` Paulo Marques
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=20050707135621.GC24401@suse.de \
--to=axboe@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-os@analogic.com \
--cc=vnagaraju@effigent.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox