reset_control_status(9)
β¨ reset_control_status(9) β¨
okay so bestie, buckle up β this is a page from the Kernel API Manual and it's lowkey one of the most useful lil vibe checks in the whole reset subsystem π
πΈ NAME πΈ
reset_control_status β returns a negative errno if not supported, a positive value if the reset line is asserted, or zero if the reset line is not asserted or if the desc is NULL (optional reset) π«Ά
like... it's literally just asking the reset line "hey girl, are you on or off?" and it'll tell you. no cap.
π SYNOPSIS π
int reset_control_status (struct reset_control *rstc );
π¦ ARGUMENTS π¦
rstcβ reset controller π (this is the main character of the whole operation, the reset controller you're checking on)
π SEE ALSO π
the whole friend group, fr fr β go read these too, they're iconic π
- Kernel file
./drivers/reset/core.c 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_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)
quick reminder bestie: negative errno = not supported π«, positive = the reset line is asserted π₯, zero = it's not asserted or the desc is NULL (that's the optional-reset situation, we love a chill default) π
k that's the whole page, mwah π
this lil cutie lives in ./drivers/reset and the manual's dated October 2026 β version vibes only β¨π¦πΈπ
π¦ 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