device_is_dependent(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– device_is_dependent(9) πŸ’–

okay bestie, welcome to the Kernel API Manual ✨ this one's a lil device_is_dependent(9) page and it's genuinely so much simpler than it looks, i promise 🫢


🌸 NAME 🌸

device_is_dependent β€” literally just checks if one device depends on another one πŸ’…


✨ SYNOPSIS ✨

int device_is_dependent (struct device *dev , void *target );

like that's it. that's the whole vibe check 😌


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device you're checking dependencies for, aka the main character πŸ‘‘
  • target β€” the device you're checking against, the one we're like "do u depend on her??" about πŸ™ˆ

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: this checks if target depends on dev, or on any device dependent on it β€” that's its child, or its consumer, etc. etc. like the whole little dependency tree of girlies 🌈

it returns 1 if that's the case, or 0 otherwise. nosy but honest. not me checking the dependency graph like it's someone's instagram followers πŸ’€


πŸ”₯ SEE ALSO πŸ”₯


ok that's a LOT of friends but they're all slaying in their own lanes, go read them too if u want the full lore πŸ“šπŸ’œ

and that's a wrap, bestie πŸŽ€ this page lives in ./drivers/base, dated October 2026, and yes she ate πŸ’…βœ¨ bye love u 🫢

πŸ“¦ where this page comes from