HomeFreeBSD

Add support for boolean sysctl's.

Description

Add support for boolean sysctl's.

Because the size of bool can be implementation defined, make a bool
sysctl handler which handle bools. Userspace sees the bools like
unsigned 8-bit integers. Values are filtered to either 1 or 0 upon
read and write, similar to what a compiler would do.

Requested by: kmacy @
Sponsored by: Mellanox Technologies

Details

Provenance
hselaskyAuthored on
Parents
rS300717: Added comment about problem found.
Branches
Unknown
Tags
Unknown