On 6/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi, I have tried to follow the source code and and have been unable to add a
variable.
Is there a step by step guide any where?
I want to have a counter (int) and an array[1000] of bytes.
you probably want two sysctls. one using sysctl_rdint and one using
sysctl_rdstruct (works on arrays too).
just pick some nice names and create defines in sys/sysctl.h and add a
case in a convenient switch in kern_sysctl.c. there are couple things
to change in sysctl.h (add new define, increase maxid, add the name to
the right list).