DEVICE_ENABLE(9)
π DEVICE_ENABLE π
okay bestie, welcome to the Kernel Developer's Manual, section 9 β yes we're in the deep end and yes you're gonna slay it π«Ά
β¨ NAME β¨
device_enable, device_disable, device_is_enabled β the lil trio that manipulates a device's enabled flag π
πΈ SYNOPSIS πΈ
#include <sys/param.h>
#include <sys/bus.h>
void
device_enable(device_t dev);
void
device_disable(device_t dev);
int
device_is_enabled(device_t dev);
π¦ DESCRIPTION π¦
so literally every single device has an enabled flag attached to it, like a little vibe check it carries around at all times β¨
A device is enabled by default when it gets created β that's its factory setting, its main character era π. But it can be disabled, bestie. why would you do that? for instance, to prevent a destructive or time consuming probe attempt π yeah, you heard me. sometimes the probe is giving chaos and you gotta shut it down before it eats your whole afternoon.
So here's the roster, no cap:
- wanna disable a device? call
device_disable() - wanna re-enable it? call
device_enable() - wanna know if it's enabled at all? call
device_is_enabled()and it'll tell you fr fr π
that's it. that's the whole vibe. three functions, one flag, endless peace of mind π§
π SEE ALSO π
π AUTHORS π
This manual page was written by Doug Rabson. iconic behavior honestly, thank you king π
okay that's the whole page!! this was the DEVICE_ENABLE(9) joint from the Kernel Developer's Manual, Debian edition, dated June 16, 1998 β like... a literal vintage. a classic. we stan a legacy manpage π
bye bestie, go enable something π β¨
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 1998 Doug Rabson
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms