of_reset_con...et_exclusive(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ of_reset_con...et_exclusive(9) πŸŽ€

okay bestie so this is a page from the Kernel API Manual, and lowkey the title got truncated by the terminal like always (of_reset_con...et_exclusive(9), yeah, that's the whole flex). It's a kernel function page, so grab a lil snack and let's get into it πŸ’…


✨ NAME ✨

of_reset_control_get_exclusive β€” the function that looks up a reset controller and hands you an exclusive reference to it. No sharing, no side-eyes, one owner only πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

struct reset_control * of_reset_control_get_exclusive (struct
       device_node *node , const char *id );

like, look at her. she's returning a struct reset_control * and she's taking exactly two things. iconic signature tbh 🫢


🌸 ARGUMENTS 🌸

  • node β€” the device that's gonna get reset by the controller. this is the lil guy getting yeeted back to factory settings πŸ’«
  • id β€” the name of the reset line. it's how you tell the function which specific line you're talking about 🏷️

🧚 DESCRIPTION 🧚

so what does she actually do? she returns a struct reset_control, or an IS_ERR condition that's carrying an errno inside it 😭 like, that's the whole contract β€” either you get a real pointer or you get an error dressed up as one. no in-between, no vibes-based guessing. check it with IS_ERR, bestie, always.

and the tea on id? using id names is optional πŸŽ€ you can skip it, it's not mandatory, the function is chill like that.


πŸ‘‘ SEE ALSO πŸ‘‘

okay this is the part where the manpage dumps the entire friend group 😭 literally the whole squad, here we go, no skips:

(and yes, it also points you at the kernel file ./include/linux/reset.h if you wanna go read the source like the main character you are πŸ“–βœ¨)

ngl if you're about to write a reset driver, at least three of these are gonna end up in your #include stack. iykyk πŸ’€

mwah πŸ’œ that's the whole page. this beauty lives over in ./include/linux, stamped October 2026, and the header/footer both repped of_reset_con...et_exclusive(9) because truncation is forever bestie 😭✌️

πŸ“¦ where this page comes from