kernel - Add SYSCTL_BIT32(n) and BIT64(n) support

Operating Systems / DragonFlyBSD - Matthew Dillon [apollo.backplane.com] - 27 November 2019 23:53 EST

- Add sysctl support capable of diving bits in a flags field. This sysctl passes and returns an int (0 or 1) to userland.

- 32-bit and 64-bit flags fields supported.

090bff1285 kernel - Add SYSCTL_BIT32(n) and BIT64(n) support
sys/kern/kern_debug.c | 14 ++++-
sys/kern/kern_sysctl.c | 154 ++++++++++++++++++++++++++++++++++++++++++-------
sys/sys/sysctl.h | 61 ++++++++++++++------
3 files changed, 187 insertions(+), 42 deletions(-)

Upstream: gitweb.dragonflybsd.org


  • Share