Re: About kernel module programming

From: George Anzinger (george@pioneer.net)
Date: Sun Apr 16 2000 - 08:09:31 EST


orion@rorasa.ath.cx wrote:
>
> > I wrote a kernel module.(for test how to call the kernel function in the
> > kernel module)
> > This module call register_tcf_proto_ops() kernel function in the
> > init_module().
> > when I load this module, it appears the following error message.
> > "test.o: unresolved symbol register_tcf_proto_ops"
> > Why??
>
> Because the register_tcf_proto_ops() kernel function is not exported by
> the kernel (I think). I've experienced the same when trying to use
> find_task_by_pid(pid). Is it possible to solve this problem without an
> ugly hack with System.map and direct addressing, or recompiling the
> kernel?
>
> W.J.
I don't know about register_tcf_proto_ops() but find_task_by_pid(pid)
should be available by just including sched.h. On the other hand, it
is an inline function, so you will get the WHOLE thing, not a simple
call...

George

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 23 2000 - 21:00:09 EST