Re: sysctlbyname
Re: sysctlbyname
- Subject: Re: sysctlbyname
- From: Matt Jaffa <email@hidden>
- Date: Sat, 7 Feb 2004 21:45:40 -0700
Sorry,
I mean it returns a -1, when i do the one when it just reads it
returns a 0 and i get the value from my KEXT, but when I try to do it
this way
result = sysctlbyname(name, &si, &len, &pass, leng);
result = sysctlbyname(name2, &getvalue, &length, &finalvalue,
length2);
it returns a -1, meaning it couldn't change the value, but I check the
SYSCTL_STRUCT i made and it does have CTLFLAG_RW and CTLFLAG_ANYBODY
so I don't know why it won't let me change the values in my KEXT
On Feb 7, 2004, at 9:19 PM, Justin Walker wrote:
On Saturday, February 7, 2004, at 08:05 PM, Matt Jaffa wrote:
[snip]
BUT when I do it like this it fails: when i try to set the values:
result = sysctlbyname(name, &si, &len, &pass, leng);
result = sysctlbyname(name2, &getvalue, &length, &finalvalue,
length2);
What does "it fails" mean?
Regards,
Justin
--
/~\ The ASCII Justin C. Walker, Curmudgeon-at-Large
\ / Ribbon Campaign
X Help cure HTML Email
/ \
_______________________________________________
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.
_______________________________________________
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.