STRUCT RESET_CONTROL_ARRAY(9)
β¨ struct reset_control_array(9) β¨
okay so this is a page from the Kernel API Manual, and honestly? it's a short one but it's lowkey a baddie. bestie, we're talking about struct reset_control_array β literally just an array of reset controls, and the way it's structured is kind of iconic. no cap, let's get into it π
π NAME π
struct reset_control_array β an array of reset controls β¨
like, that's it. that's the whole vibe. it's a struct that holds many reset controls at once. group chat energy but for hardware resets π«Ά
πΈ SYNOPSIS πΈ
struct reset_control_array {
struct reset_control base;
unsigned int num_rstcs;
struct reset_control *rstc[];
};
look at her. three members, zero drama, main character energy. keep reading for the member breakdown π
π¦ Members π¦
baseβ the reset control for compatibility with reset control API functions. yes bb, she keeps astruct reset_controlaround so all the regular reset-control API calls still work on her. it's giving "I contain multitudes" πnum_rstcsβ number of reset controls. anunsigned intthat literally just tells you how many resets are in the array. no notes, she's counting, she's serving πrstcβ array of reset controls. that's a flexible array member (struct reset_control *rstc[]), so the actual resets live right there at the end of the struct, all cozy together π§
fr fr, every single member is listed above β nothing skipped, nothing merged. we respect the whole struct here π
π₯ SEE ALSO π₯
Kernel file ./drivers/reset/core.c β go read the source, iykyk π and while you're at it, these siblings are all linked, so here's the full squad, no shortcuts taken:
struct reset_control(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)devm_reset_control_array_get(9)reset_control_get_count(9)
that's the whole page bestie, short and sweet and every bit of it intact π go forth and reset things responsibly β¨
sign-off szn π this lil gem lives in ./drivers/reset, and the manual's dated October 2026 β so like, future energy, slay, see you then ππ¦πΈ
π¦ 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