DEVICE_GET_SYSCTL(9)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ’… DEVICE_GET_SYSCTL(9) β€” Kernel Developer's Manual, but make it group-chat ✨

okay so bestie, welcome to the DEVICE_GET_SYSCTL(9) page β€” it's giving kernel developer realness, and we're gonna talk about the sysctl oid tree for driver specific sysctl nodes. no cap. 🫢

🌸 NAME 🌸

device_get_sysctl_ctx, device_get_sysctl_tree β€” manipulate the sysctl oid tree for driver specific sysctl nodes. πŸ’–

✨ SYNOPSIS ✨

#include <sys/param.h>
#include <sys/bus.h>

struct sysctl_ctx_list *
device_get_sysctl_ctx(device_t dev);

struct sysctl_oid *
device_get_sysctl_tree(device_t dev);

πŸ¦‹ DESCRIPTION πŸ¦‹

The newbus system is literally doing the most: it automatically adds a sysctl node for each device in the system. πŸŽ€

You can access that node with the device_get_sysctl_tree() function. 🌟

The context for the node can be obtained with the device_get_sysctl_ctx() function. πŸ’…

iykyk: these two are your besties for getting at the node and its context, fr fr. 🫢

πŸ”₯ SEE ALSO πŸ”₯

  • device(9) β€” go read it, bestie. πŸ“š

πŸ‘‘ AUTHORS πŸ‘‘

This manual page was written by Warner Losh. iconic behavior. πŸ’œ


xoxo, your Debian bestie πŸ’– β€” DEVICE_GET_SYSCTL(9), June 18, 2011, periodt. 🫢

πŸ“¦ where this page comes from