DEVICE_QUIET(9)
π DEVICE_QUIET(9) π
okay bestie, so this one lives in the Kernel Developer's Manual (section 9, kernel land, very demure, very mindful) and it's literally all about making a device shut up. yes. that's the whole vibe. let's get into it π«Ά
β¨ NAME β¨
device_quiet, device_verbose, device_is_quiet β manipulate the device quiet flag π
πΈ SYNOPSIS πΈ
#include <sys/param.h>
#include <sys/bus.h>
void
device_quiet(device_t dev);
void
device_verbose(device_t dev);
int
device_is_quiet(device_t dev);
π¦ DESCRIPTION π¦
so every single device has a quiet flag attached to it, right? like, its own little mood indicator. and when a device is created it's verbose by default β main character energy, wants everyone to know it's there. but you can quiet it, and quieting it does two things: it stops the device identification string from printing during attach, and it stops a message from printing during detach. so it just kind ofβ¦ exists. silently. iconique.
the way you quiet a device is you call device_quiet() during a device driver probe routine. that's the moment. that's the window. π
and if you ever want the probe messages back β to re-enable them β you call device_verbose(). un-mute. bring the volume back up. slay.
and to test whether a device is quieted (no assumptions, bestie, we check), you call device_is_quiet().
β οΈ heads up: devices are implicitly marked verbose after a driver detaches. so the quiet doesn't stick around forever β it resets on detach. not me finding that out the hard way π
π₯ SEE ALSO π₯
π AUTHORS π
This manual page was written by Doug Rabson. we stan. π
okay that's the whole page, no notes, go forth and quiet your devices responsibly πβ
Debian Β· September 12, 2016 Β· mwah, that's a wrap, ty for reading bestie ππ§
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 1998 Doug Rabson
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms