Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 May 2004 00:49:34 +0200 (CEST)
From:      elmar gerdes <elmar@engel-kg.com>
To:        freebsd-hackers@freebsd.org
Subject:   find symbols in loadable kernel module
Message-ID:  <20040507004746.C4224@uranus.engel-kg.com>

next in thread | raw e-mail | index | archive | help

Hi,


I'm looking for a mechanism that allows one loadable kernel module to
	find the symbols of another module,
i.e. find a function 'foo' by its name and get the address of it,
so I can call it.


I've stumbled across kernel objects which should allow me to do this
using kobj_lookup_method(), but I haven't found a call to this function
anywhere except where it's defined.


kernel objects are used for parallel port drivers and sound drivers which
use some kind of bus architecture with calls like BUS_ADD_CHILD() et.al.

do I also have to use/implement such a bus architecture just to find some
functions by their names?


Is there a simpler method to just find the functions, or is there some
more information on kernel objects (tutorial, simple example ...)?


Any help is welcome.  Thanx.

	elmar
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040507004746.C4224>