__of_device_is_fail(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __of_device_is_fail(9) β€” Kernel API Manual πŸŽ€

okay bestie, welcome to the Kernel API Manual page for __of_device_is_fail(9). yes the double underscore is part of the name, she's ✨special✨ like that. anyway. let's get into it 🫢


🌸 NAME 🌸

__of_device_is_fail β€” the lil check that tells you if a device's status is literally "fail" or "fail-..." πŸ’€

like, is this node doing okay or did it flop? this function knows.


⭐ SYNOPSIS ⭐

bool __of_device_is_fail (const struct device_node *device );

it returns a bool, takes one const struct device_node *, and no, you don't get to pass anything else. she's lowkey simple like that πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • device β€” the node you want to check the status of πŸ’– important vibe check: the locks are already held when you call this, so don't go grabbing them again, bestie, that's not it πŸ™ˆ

✨ RETURN ✨

  • true β€” the status property is set to "fail" or "fail-..." β€” and yes, that means "fail" followed by any error code suffix, no cap πŸ”₯
  • false β€” anything else. she's fine. she's slaying. move on 🧚
so basically: "fail" = flopped, "fail-<anything>" = also flopped (with receipts), everything else = not this function's problem πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, fr fr. it's giving "family reunion" and honestly we're obsessed 🌈


and that's the page!! πŸŽ€ go check some device nodes, bestie, you've got this πŸ’œ

bye from the ./drivers/of corner of the kernel, dated October 2026, on the __of_device_is_fail(9) page β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from