ENUM RESET_CONTROL_FLAGS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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):


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