fwnode_reset...ol_get_count(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… fwnode_reset_control_get_count β€” Kernel API Manual ✨

okay so you're in the kernel API docs (the (9) section, iykyk) and you found fwnode_reset_control_get_count. bestie, this one's actually so simple and so useful, let's go 🫢


🌸 NAME 🌸

fwnode_reset_control_get_count β€” literally just counts how many resets are available with a device. that's the whole job. iconic, minimal, no notes πŸ’…


✨ SYNOPSIS ✨

int fwnode_reset_control_get_count (struct fwnode_handle *fwnode );

πŸŽ€ ARGUMENTS πŸŽ€

  • fwnode β€” the firmware node that contains 'resets'. that's the one you're counting from, bestie πŸ¦‹

πŸ’– DESCRIPTION πŸ’–

so here's the vibe check: it returns a positive reset count on success ✨

…or an error number on failure, and also when the count is zero 😭 yeah, zero doesn't get to be a happy little count here, it comes back as an error number. no cap, that's just how it is.


πŸ”₯ SEE ALSO πŸ”₯

the whole reset-control friend group, fr fr β€” go say hi:


okay that's the page, mwah πŸ’‹ this one lives in ./drivers/reset, dated October 2026, and it's part of the Kernel API Manual β€” go count some resets responsibly, bestie πŸŒˆπŸ“

πŸ“¦ where this page comes from