SYSCTL_STRUCT
SYSCTL_STRUCT
- Subject: SYSCTL_STRUCT
- From: Matt Jaffa <email@hidden>
- Date: Tue, 20 Apr 2004 16:16:45 -0600
Hi,
I am declaring this in my KEXT extension:
SYSCTL_STRUCT(_kern, OID_AUTO, aaaaaaa, CTLFLAG_RW|CTLFLAG_ANYBODY,
&somo2, EtherNode, "EtherNode");
I was just wondering if I use sysctlbyname in my userland daemon and
I grab that structure from my KEXT, is it also going to grab the chain
of structures?
so if my STRUCT is
struct EtherNode {
struct testing * next;
int value;
}
struct EtherNode somo2;
am I going to get the chain too?
Same thing with setting the struct value.
Well I have tested it a little bit, in my userland daemon I created a
chain of these and passed it in, After I passed it in my KEXT noticed
it was changed and the next was now not null, but the values in the
next were not the sameones from my daemon, I don't think it is
allowing me to pass chains in.
Matt
_______________________________________________
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.