All of lore.kernel.org
 help / color / mirror / Atom feed
From: arif <arif@bansberrysg.com>
To: netfilter-devel@vger.kernel.org
Subject: Calling ip_rcv_finish() from a module
Date: Sun, 02 Dec 2012 16:38:45 +0600	[thread overview]
Message-ID: <k9fb3k$fd4$1@ger.gmane.org> (raw)

Hi,

arif@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?

cheers
arif


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

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-02 10:38 arif [this message]
2012-12-04 18:18 ` Calling ip_rcv_finish() from a module Jan Engelhardt

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='k9fb3k$fd4$1@ger.gmane.org' \
    --to=arif@bansberrysg.com \
    --cc=netfilter-devel@vger.kernel.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.