All of lore.kernel.org
 help / color / mirror / Atom feed
From: aftnix@gmail.com (arif)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Getting address of a symbol from kernel's symbol table.
Date: Sun, 02 Dec 2012 16:43:51 +0600	[thread overview]
Message-ID: <k9fbd5$gl4$1@ger.gmane.org> (raw)

arif at khost:~/src/linux$ global -x ip_rcv_finish
ip_rcv_finish     319 net/ipv4/ip_input.c static int 
ip_rcv_finish(struct sk_buff *skb)

Now if i want to use this function i need to initialize a pointer to 
this function.

To be able to do that i need the address of the function.

I've seen that from user space i can read /proc/kallsyms to get an 
address of a symbol. Is their any similar mechanism exist where i can 
read the symbol table to extract a symbol's address from kernel space?

             reply	other threads:[~2012-12-02 10:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-02 10:43 arif [this message]
2012-12-02 15:49 ` Getting address of a symbol from kernel's symbol table Mulyadi Santosa
2012-12-03 12:50   ` Arif Hossain
2012-12-03 23:46     ` Mulyadi Santosa

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='k9fbd5$gl4$1@ger.gmane.org' \
    --to=aftnix@gmail.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.