devm_reset_...ional_shared(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… devm_reset_control_bulk_get_optional_shared β€” the whole manual, bestie

okay so. this is a page from the Kernel API Manual (section 9, the fun one) and it's all about devm_reset_control_bulk_get_optional_shared. yes the title is a mouthful, no we're not abbreviating it, and yes it's iconic. let's get into it πŸ’–


✨ NAME ✨

devm_reset_control_bulk_get_optional_shared β€” the resource managed version of reset_control_bulk_get_optional_shared(). that's it, that's the name, it literally tells you what it is πŸŽ€


🌸 SYNOPSIS 🌸

int devm_reset_control_bulk_get_optional_shared (struct device *dev ,
int num_rstcs , struct reset_control_bulk_data *rstcs );

like, look at her. three args. returns an int. no notes. 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the device that's gonna get reset by the controller. main character energy tbh πŸ‘‘
  • num_rstcs β€” how many entries live in the rstcs array. like, count your blessings but make it a parameter ✨
  • rstcs β€” the actual array of struct reset_control_bulk_data, with the reset line names already set. so don't come in here with unnamed lines, that's not the vibe πŸ™ˆ

πŸ”₯ DESCRIPTION πŸ”₯

So this is the managed reset_control_bulk_get_optional_shared. and "managed" is doing so much work in that sentence, bestie β€” the way that any reset controllers you get back from this function get reset_control_put called on them automatically when the driver detaches. no manual cleanup, no goto err_ spaghetti, no cap. the kernel just handles it for you πŸ’…

If you want the full lore, the page says: see reset_control_bulk_get_optional_shared for more information. that's the unmanaged sibling, go say hi πŸ’œ


⭐ SEE ALSO ⭐

okay this list is long long, but every single one of these is here for a reason and we respect all of them. get comfy πŸ“

ngl, that list ate and left no crumbs. iykyk πŸ”₯

and that's the page, bestie β€” it lives at ./include/linux, it's dated October 2026, and it's filed under devm_reset_...ional_shared(9) in the Kernel API Manual. stay managed, stay optional, stay shared πŸŒˆπŸ’–βœ¨

πŸ“¦ where this page comes from