From owner-freebsd-hackers@FreeBSD.ORG Thu May 6 15:49:37 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 049BB16A4CE for ; Thu, 6 May 2004 15:49:37 -0700 (PDT) Received: from nfs.engel-kg.com (mail.engel-kg.com [62.80.41.218]) by mx1.FreeBSD.org (Postfix) with SMTP id ADDB643D3F for ; Thu, 6 May 2004 15:49:35 -0700 (PDT) (envelope-from elmar@engel-kg.com) Received: (qmail 53631 invoked from network); 6 May 2004 22:49:34 -0000 Received: from uranus.engel-kg.com (192.168.10.236) by nfs.engel-kg.com with SMTP; 6 May 2004 22:49:34 -0000 Date: Fri, 7 May 2004 00:49:34 +0200 (CEST) From: elmar gerdes To: freebsd-hackers@freebsd.org Message-ID: <20040507004746.C4224@uranus.engel-kg.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: find symbols in loadable kernel module X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 May 2004 22:49:37 -0000 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"