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