* Calling ip_rcv_finish() from a module
@ 2012-12-02 10:38 arif
2012-12-04 18:18 ` Jan Engelhardt
0 siblings, 1 reply; 2+ messages in thread
From: arif @ 2012-12-02 10:38 UTC (permalink / raw)
To: netfilter-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Calling ip_rcv_finish() from a module
2012-12-02 10:38 Calling ip_rcv_finish() from a module arif
@ 2012-12-04 18:18 ` Jan Engelhardt
0 siblings, 0 replies; 2+ messages in thread
From: Jan Engelhardt @ 2012-12-04 18:18 UTC (permalink / raw)
To: arif; +Cc: netfilter-devel
On Sunday 2012-12-02 11:38, arif wrote:
> 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?
No. The function could be inlined and as such not even exist.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-12-04 18:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-02 10:38 Calling ip_rcv_finish() from a module arif
2012-12-04 18:18 ` Jan Engelhardt
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.