Re: SYSCTL
Re: SYSCTL
- Subject: Re: SYSCTL
- From: Justin Walker <email@hidden>
- Date: Sat, 7 Feb 2004 00:17:56 -0800
On Saturday, February 7, 2004, at 12:04 AM, Matt Jaffa wrote:
Hi,
I am trying to create my own SYSCTL_NODE and SYSCTL_STRUCT,
so that I can communicate with my KEXT from userland.
But after doing these lines, it compiles fine,
SYSCTL_DECL(_jaffa);
SYSCTL_NODE(, OID_AUTO, _jaffa, CTLFLAG_RW, 0, "Jaffa");
struct sysctl_oid_list sysctlr__jaffa_children;
SYSCTL_STRUCT(_jaffa, OID_AUTO, ttttt, CTLFLAG_RW, &so, socket,
"dfdf");
but when I try to load the KEXT it throws this error:
kextload: extension /System/Library/Extensions/EtherView.kext appears
to be valid
kld(): Undefined symbols:
_sysctl__jaffa_children
kextload: kld_load_from_memory() failed for module
/System/Library/Extensions/EtherView.kext/Contents/MacOS/EtherView
kextload: a link/load error occured for kernel extension
/System/Library/Extensions/EtherView.kext
load failed for extension /System/Library/Extensions/EtherView.kext
(run kextload with -t for diagnostic output)
Am I going about the right way to get this information to my KEXT, and
if so how do i fix this loading problem?
Did you "run kextload with -t for diagnostic output"?
Also, did you search the darwin-kernel archives? This was discussed in
the past couple of weeks.
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | If you're not confused,
| You're not paying attention
*--------------------------------------*-------------------------------*
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.
References: | |
| >SYSCTL (From: Matt Jaffa <email@hidden>) |