devm_reset_c...ional_shared(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… devm_reset_control_get_optional_shared β€” NAME ✨

okay so bestie, this is devm_reset_control_get_optional_shared β€” the resource managed version of reset_control_get_optional_shared(). yes, the whole long name, she's iconic like that πŸŽ€

(this page lives in the Kernel API Manual, fyi πŸ¦‹)


🌸 SYNOPSIS 🌸

struct reset_control * devm_reset_control_get_optional_shared (struct
device *dev , const char *id );

literally just look at her 🫢 two args, one pointer out, no cap.


✨ ARGUMENTS ✨

  • dev β€” the device that's gonna get reset by the controller πŸ’…
  • id β€” the name of the reset line πŸŽ€

πŸ”₯ DESCRIPTION πŸ”₯

So this is the managed reset_control_get_optional_shared. The way that works is: for any reset controllers that come back out of this function, reset_control_put gets called automatically on driver detach. you don't have to do it yourself, she handles it πŸ’– no manual cleanup arc, we love a self-sufficient queen πŸ‘‘

If you want the full lore, go read reset_control_get_optional_shared β€” that's where the real details live πŸ“–


🌈 SEE ALSO 🌈

okay this list is LONG, buckle up bestie, we're going through all of it 🧚

like, that's the whole friend group right there πŸ˜­πŸ’€


and that's the page!! brought to you from ./include/linux, dated October 2026 β€” mwah, see u next time bestie πŸ’œπŸŽ€βœ¨

πŸ“¦ where this page comes from