SYSCTL_ADD_UINT - what am i doing wrong?
Peter Jeremy
peterjeremy at optushome.com.au
Sat Jan 27 02:43:32 UTC 2007
On Fri, 2007-Jan-26 01:54:25 -0500, john at utzweb.net wrote:
>I am having some gnarly grief with SYSCTL_ADD_UINT; it doesnt present the
>data that i think that i have presented to it. What's strange about this
>is that i use SYSCTL_ADD_STRING and it works perfectly.
I suspect that your problem is that SYSCTL_ADD_UINT needs a uint32_t
but you are apparently passing a byte. If you convert the sysctl
output to hex, you will notice that the low byte is correct.
--
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-acpi/attachments/20070127/b948fbd8/attachment.pgp
More information about the freebsd-acpi
mailing list