fwnode_device_is_available(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– fwnode_device_is_available β€” the kernel API manual, bestie edition πŸ’–

okay so real talk, this is fwnode_device_is_available(9) from the Kernel API Manual and it's genuinely one of the chillest little functions you'll ever meet. no cap. let me put you on. ✨


πŸŽ€ NAME πŸŽ€

fwnode_device_is_available β€” check if a device is available for use, that's literally it, that's the whole job πŸ’…


✨ SYNOPSIS ✨

bool fwnode_device_is_available (const struct fwnode_handle *fwnode );

like look at her. one argument. returns a bool. icon behavior honestly 🫢


🌸 ARGUMENTS 🌸

  • fwnode β€” Pointer to the fwnode of the device. that's the thing you're vibe-checking, bestie πŸ¦‹

⭐ RETURN ⭐

returns true if the device is available for use. otherwise? returns false. that's the whole plot, no twists πŸ”₯


πŸ’œ DESCRIPTION πŸ’œ

so here's the tea β˜• β€” for fwnode node types that don't implement the .device_is_available operation, this function returns true.

like. it doesn't have an opinion, so it just says yes by default. main character energy of the highest order tbh 😭 the way that it's just gonna assume available unless someone actually implements the check?? love that for us πŸ’€

not me memorizing this: no .device_is_available implementation = automatic true. periodt.

πŸ¦‹ SEE ALSO πŸ¦‹

buckle up bestie, this list is LONG and every single one of these is iconic in her own right πŸ‘‘

also the kernel file lives at ./drivers/base/property.c if you wanna go read the source yourself, iykyk πŸ“–πŸ§š


🌈 the sign-off 🌈

that's the whole page bestie!! this one came from ./drivers/base, dated October 2026, and it's the fwnode_device_is_available(9) page through and through. go forth and check your devices, you absolute legend πŸ‘‘πŸ’–βœ¨

πŸ“¦ where this page comes from