devm_reset_c...ol_array_get(9)
β¨ 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 π§
struct reset_control(9)struct reset_control_array(9)struct reset_gpio_lookup(9)fwnode_reset_simple_xlate(9)reset_controller_register(9)reset_controller_unregister(9)devm_reset_controller_register(9)reset_control_reset(9)reset_control_bulk_reset(9)reset_control_rearm(9)reset_control_assert(9)reset_control_bulk_assert(9)reset_control_deassert(9)reset_control_bulk_deassert(9)reset_control_status(9)reset_control_acquire(9)reset_control_bulk_acquire(9)reset_control_release(9)reset_control_bulk_release(9)reset_control_put(9)reset_control_bulk_put(9)__device_reset(9)fwnode_reset_control_get_count(9)fwnode_reset_control_array_get(9)reset_control_get_count(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms