devm_reset_...ive_by_index(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… devm_reset_control_get_exclusive_by_index β€” from the Kernel API Manual, bestie

okay so first things first, the function's full name is devm_reset_control_get_exclusive_by_index, but the header shortens it to devm_reset_...ive_by_index(9) because manpage titles have a character limit and honestly same, we've all been there 🫢


✨ NAME ✨

devm_reset_control_get_exclusive_by_index β€” it's the resource managed version of reset_control_get_exclusive(), and yes that's the whole personality πŸ’–


🌸 SYNOPSIS 🌸

struct reset_control * devm_reset_control_get_exclusive_by_index (struct
device *dev , int index );

no cap, that's literally the whole call ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device that's gonna get reset by the controller. it's the main character here πŸ‘‘
  • index β€” the index of the reset controller. which one are we talking about? this number. πŸ”’

πŸ¦‹ DESCRIPTION πŸ¦‹

so this is the managed reset_control_get_exclusive. and "managed" is the key word, bestie β€” for reset controllers returned from this function, reset_control_put gets called automatically on driver detach. like, the kernel handles the cleanup for you. no manual put, no leaks, no stress. it's giving responsible adult energy πŸ’…βœ¨

if you want the full lore, see reset_control_get_exclusive for more information 🫢


πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, in kernel file ./include/linux/reset.h 🌈


and that's the whole page, bestie πŸ’œ it lives in ./include/linux and this edition is dated October 2026 β€” signed, sealed, delivered, go reset some controllers responsibly πŸŽ€βœ¨

πŸ“¦ where this page comes from