DEVICE_GET_FLAGS(9)
π hey bestie, this is DEVICE_GET_FLAGS(9) π
okay so, welcome to the kernel dev manual, section 9, and today's main character is device_get_flags π it's a tiny page, a lil snack, but it's important, so let's get into it fr fr π¦
πΈ NAME πΈ
device_set_flags, device_get_flags β manipulate driver flags β¨
π SYNOPSIS π
#include <sys/param.h>
#include <sys/bus.h>
void
device_set_flags(device_t dev, uint32_t flags);
uint32_t
device_get_flags(device_t dev);
π DESCRIPTION π
so every single device out here is carrying its own little set of driver-dependent flags π«Ά these flags are, like, extremely often used to control how a device behaves β its whole vibe, basically.
- wanna read those flags? you call
device_get_flags()π - wanna write them? you call
device_set_flags()βοΈ
that's it. that's the whole thing. lowkey iconic that something this small runs so much π
π₯ SEE ALSO π₯
device(9)β go read that one too bestie, it's the whole context β¨
π AUTHORS π
this manual page was written by Doug Rabson π absolute legend behaviour, no cap.
and that's a wrap on DEVICE_GET_FLAGS(9) from the Kernel Developer's Manual, served fresh from Debian, dated September 6, 1999 π yes she's vintage, and yes she still ate β bye bestie, go read your flags ππ
π¦ 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) 1999 Doug Rabson
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms