From owner-freebsd-hackers@FreeBSD.ORG Tue May 17 13:00:41 2005 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 A947116A4CE for ; Tue, 17 May 2005 13:00:41 +0000 (GMT) Received: from bps.jodocus.org (g157016.upc-g.chello.nl [80.57.157.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id E780643DAF for ; Tue, 17 May 2005 13:00:40 +0000 (GMT) (envelope-from joost@jodocus.org) Received: from jodocus.org (localhost [127.0.0.1]) by bps.jodocus.org (8.13.3/8.13.1) with ESMTP id j4HD0WjB085186 for ; Tue, 17 May 2005 15:00:32 +0200 (CEST) (envelope-from joost@jodocus.org) Received: (from joost@localhost) by jodocus.org (8.13.3/8.13.1/Submit) id j4HD0WhX085185 for freebsd-hackers@freebsd.org; Tue, 17 May 2005 15:00:32 +0200 (CEST) (envelope-from joost) Date: Tue, 17 May 2005 15:00:32 +0200 From: Joost Bekkers To: freebsd-hackers@freebsd.org Message-ID: <20050517130032.GA84495@bps.jodocus.org> Mail-Followup-To: Joost Bekkers , freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: Converting a function* into something Joe Admin understands 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: Tue, 17 May 2005 13:00:41 -0000 Hi The answer will probably be 'no', but here goes: Is there a way (in the kernel) to convert a pointer to a function into a char* indicating the module it is associated with? More specificly: I've been playing with changing the order of the pfil hooks @runtime via sysctl. To be able to give the sysadmin something (s)he understands I've added a const char * parameter to the pfil_head_register and pfil_add_hook functions, breaking the API. I'm wondering if there is a way to get meaningful text to the sysadmin without breaking the API. Or is it in this case not a bad thing? Thanks. -- greetz Joost joost@jodocus.org