reset_contro...al_exclusive(9)
π reset_contro...al_exclusive(9) β from the Kernel API Manual, bestie
okay so real talk, this page is reset_contro...al_exclusive(9) (yes the title got truncated, it's giving "my name is too long for the tab bar" energy π) and it lives in the Kernel API Manual. she's a little niche, a little iconic, and honestly? kind of a lifesaver once you get what she does. let's get into it π
β¨ NAME β¨
reset_control_get_optional_exclusive β the optional version of reset_control_get_exclusive(). like the same girl but with a "no worries if not" clause π«Ά
πΈ SYNOPSIS πΈ
struct reset_control * reset_control_get_optional_exclusive (struct
device *dev , const char *id );
literally that's the whole signature, copy it exactly, don't get cute with it π
π¦ ARGUMENTS π¦
devβ the device that's gonna get reset by the controller. that's her main character, the one being handled πidβ the name of the reset line. like her @ handle, but for a reset line π·οΈ
π DESCRIPTION π
okay so this is the optional variant of reset_control_get_exclusive. and "optional" here is doing so much work β the whole vibe:
if the reset you asked for isn't specified in the device tree, this function does not throw you an error. it just returns NULL instead. no drama, no crash, no "why is my probe failing" at 2am ππ
it's giving "asked for a thing, thing wasn't there, gracefully moved on." very emotionally mature of it, honestly β¨
and if you want the actual tea on how the non-optional one behaves β reset_control_get_exclusive. go read that one, she's the source of truth π
π₯ SEE ALSO π₯
buckle up bestie, this list is long and she ate, every single one of these is a real reference, don't skip, iykyk π
first, the kernel file this all lives in:
- Kernel file
./include/linux/reset.h
and then the whole friend group π:
struct reset_control_bulk_data(9)enum reset_control_flags(9)reset_control_get_exclusive(9)reset_control_bulk_get_exclusive(9)reset_control_get_exclusive_released(9)reset_control_bulk_get_exclusive_released(9)reset_control_bulk_get_optional_exclusive_released(9)reset_control_get_shared(9)reset_control_bulk_get_shared(9)reset_control_bulk_get_optional_exclusive(9)reset_control_get_optional_shared(9)reset_control_bulk_get_optional_shared(9)of_reset_control_get_exclusive(9)of_reset_control_get_optional_exclusive(9)of_reset_control_get_shared(9)of_reset_control_get_exclusive_by_index(9)of_reset_control_get_shared_by_index(9)devm_reset_control_get_exclusive(9)devm_reset_control_get_exclusive_deasserted(9)devm_reset_control_bulk_get_exclusive(9)devm_reset_control_get_exclusive_released(9)devm_reset_control_bulk_get_exclusive_released(9)devm_reset_control_get_optional_exclusive_released(9)devm_reset_control_bulk_get_optional_exclusive_released(9)devm_reset_control_get_shared(9)devm_reset_control_get_shared_deasserted(9)devm_reset_control_bulk_get_shared(9)devm_reset_control_bulk_get_shared_deasserted(9)devm_reset_control_get_optional_exclusive(9)devm_reset_control_get_optional_exclusive_deasserted(9)devm_reset_control_bulk_get_optional_exclusive(9)devm_reset_control_get_optional_shared(9)devm_reset_control_get_optional_shared_deasserted(9)devm_reset_control_bulk_get_optional_shared(9)devm_reset_control_get_exclusive_by_index(9)devm_reset_control_get_shared_by_index(9)
and that's the whole page, bestie π«Ά signing off β this one sources from ./include/linux and it's dated October 2026, so yeah, she's officially stamped and everything π
π periodt β¨
π¦ 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