__of_device_is_available(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ __of_device_is_available ✨

okay so bestie, welcome to the Kernel API Manual πŸ’… this one's a little helper from the device tree corner of the kernel, and honestly? it's giving "quick vibe check for hardware" πŸŽ€


🌸 NAME 🌸

__of_device_is_available β€” literally just checks if a device is available for use, no cap πŸ”₯


πŸ¦‹ SYNOPSIS πŸ¦‹

bool __of_device_is_available (const struct device_node *device );

πŸ’– ARGUMENTS πŸ’–

  • device β€” the node you wanna check for availability, and heads up: you're passing it in with locks already held πŸ”’ (so like, this is the lowkey internal version, iykyk)

πŸ‘‘ RETURN πŸ‘‘

Returns True if the status property is absent or set to "okay" or "ok" β€” and false otherwise. periodt πŸ’…

So like: no status property at all? slay, it's available. status says "okay" or "ok"? also slay. anything else? nope, not available πŸ™ˆ


🧚 SEE ALSO 🧚

Kernel file ./drivers/of/base.c and honestly the whole friend group:


ngl this is the "locks already held" sibling of of_device_is_available(9) β€” so don't go calling it thinking it'll grab the lock for you, bestie 😭 it won't. read the arguments. 🫢

πŸ’œ that's the whole page!! this one lives in ./drivers/of, dated October 2026, and it's part of the Kernel API Manual β€” mwah, go forth and vibe check your device nodes πŸŒˆβ­πŸ“

πŸ“¦ where this page comes from