ENUM RESET_CONTROL_FLAGS(9)
π
enum reset_control_flags β from the Kernel API Manual, bestie
Okay so picture this: you're deep in the kernel, you need a reset control, and you gotta tell the reset_control_get functions exactly what kind of reset control you want. That's what this enum is for, periodt. β¨
β οΈ Huge heads-up: these values cannot be OR'd. Not "shouldn't", cannot. Don't be out here trying to combine them like they're a build-your-own-burrito situation. π«Ά
β¨ NAME β¨
enum reset_control_flags β the flags you pass to the reset_control_get functions so they know what type of reset control you're asking for. Lowkey the whole personality of your request lives in here. π
πΈ SYNOPSIS πΈ
enum reset_control_flags {
RESET_CONTROL_EXCLUSIVE ,
RESET_CONTROL_EXCLUSIVE_DEASSERTED ,
RESET_CONTROL_EXCLUSIVE_RELEASED ,
RESET_CONTROL_SHARED ,
RESET_CONTROL_SHARED_DEASSERTED ,
RESET_CONTROL_OPTIONAL_EXCLUSIVE ,
RESET_CONTROL_OPTIONAL_EXCLUSIVE_DEASSERTED ,
RESET_CONTROL_OPTIONAL_EXCLUSIVE_RELEASED ,
RESET_CONTROL_OPTIONAL_SHARED ,
RESET_CONTROL_OPTIONAL_SHARED_DEASSERTED
};
π¦ Constants π¦
Ten constants, one vibe check each. Let's go down the list like we're rating fits. π
RESET_CONTROL_EXCLUSIVEβexclusive, acquired,π the classic.RESET_CONTROL_EXCLUSIVE_DEASSERTEDβexclusive, acquired, deassertedβ¨ deasserted like a queen.RESET_CONTROL_EXCLUSIVE_RELEASEDβexclusive, released,ποΈ released and living its truth.RESET_CONTROL_SHAREDβsharedπ€ sharing is caring, fr fr.RESET_CONTROL_SHARED_DEASSERTEDβshared, deassertedπ shared and deasserted, we love range.RESET_CONTROL_OPTIONAL_EXCLUSIVEβoptional, exclusive, acquiredπ optional but it still ate.RESET_CONTROL_OPTIONAL_EXCLUSIVE_DEASSERTEDβoptional, exclusive, acquired, deassertedπΈ four words, zero notes.RESET_CONTROL_OPTIONAL_EXCLUSIVE_RELEASEDβoptional, exclusive, releasedπ¦ optional, exclusive, and released β main character energy.RESET_CONTROL_OPTIONAL_SHAREDβoptional, sharedπ the chill one.RESET_CONTROL_OPTIONAL_SHARED_DEASSERTEDβoptional, shared, deassertedβ closing out the enum strong.
π₯ SEE ALSO π₯
Kernel file lead-in: ./include/linux/reset.h π
And the whole friend group of functions (no cap, these are all in here):
struct reset_control_bulk_data(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_get_optional_exclusive(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)
That's the whole page, bestie β go forth and request your reset controls correctly π
Sourced from ./include/linux, dated October 2026. Ty for coming to my TED talk, ily, mwah π
π¦ 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