Date: Tue, 17 May 2005 15:00:32 +0200 From: Joost Bekkers <joost@jodocus.org> To: freebsd-hackers@freebsd.org Subject: Converting a function* into something Joe Admin understands Message-ID: <20050517130032.GA84495@bps.jodocus.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050517130032.GA84495>