devm_reset_c...ol_array_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ devm_reset_c...ol_array_get(9) ✨

okay so this is a page from the Kernel API Manual β€” yes bestie, the real one, the kernel docs, and honestly? it's giving "short but iconic". it's about devm_reset_control_array_get, and we're gonna get into it πŸ’…


πŸŽ€ NAME πŸŽ€

devm_reset_control_array_get β€” the resource managed reset control array get. that's the whole name, no cap. it gets you a reset control array, and it's resource managed, which is the devm_ part doing its little main character thing 🫢


🌸 SYNOPSIS 🌸

struct reset_control * devm_reset_control_array_get (struct device *dev
, enum reset_control_flags flags );

literally just two arguments, bestie. that's it. look at her go ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the device that requests the list of reset controls. like, who's asking for the resets? it's this guy. this device. the requester πŸ’–
  • flags β€” whether reset controls are shared, optional, acquired. that's the whole vibe of the flags parameter right there πŸ”₯

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the tea on the reset control array APIs β˜• β€” they're intended for a list of resets that just have to be asserted or deasserted, without any requirements on the order. none. zero. order doesn't matter here, she's flexible like that 🌈

and the return? slay:

Returns pointer to allocated reset_control on success or error on failure πŸ’€ β€” so like, you either get a pointer to the allocated reset_control, or you get an error. no in-between, no "it's complicated". periodt πŸŽ€


πŸ”₯ SEE ALSO πŸ”₯

get comfy, because this list is long and honestly we love her for it πŸ‘‘

Kernel file ./drivers/reset/core.c β€” that's the home base, the mothership, go read it 🧚

like, that's the whole friend group right there 😭 every single one of them, all present and accounted for, iykyk πŸ¦‹


ngl bestie, if you're asserting a bunch of resets in some specific precious order, this API is not the one β€” it explicitly doesn't care about order. read the room πŸ’…

and that's the page!! mwah πŸ’– this little icon came out of ./drivers/reset, dated October 2026, and it's filed under devm_reset_c...ol_array_get(9) β€” go forth and manage your resources responsibly, bestie, the kernel believes in you πŸ«Άβœ¨πŸŽ€

πŸ“¦ where this page comes from