ENUM DBC_CMD_MSG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ enum dbc_cmd_msg(9) ✨

okay so this is a page straight out of the Kernel API Manual, and bestie, it's literally just one enum and it's lowkey iconic πŸŽ€


πŸ’– NAME πŸ’–

enum dbc_cmd_msg β€” the messages that DBCIOCPARAM uses, iykyk πŸ’…


🌸 SYNOPSIS 🌸

enum dbc_cmd_msg {
    PARAM_GET_FMAX_CAP ,
    PARAM_SET_FMAX_CAP ,
    PARAM_GET_PWR_CAP ,
    PARAM_SET_PWR_CAP ,
    PARAM_GET_GFX_MODE ,
    PARAM_SET_GFX_MODE ,
    PARAM_GET_CURR_TEMP ,
    PARAM_GET_FMAX_MAX ,
    PARAM_GET_FMAX_MIN ,
    PARAM_GET_SOC_PWR_MAX ,
    PARAM_GET_SOC_PWR_MIN ,
    PARAM_GET_SOC_PWR_CUR

};

like, that's the whole cast of characters, no notes 🫢


πŸ¦‹ Constants πŸ¦‹

bestie these are the twelve little enum members and honestly each one is serving a very specific purpose, so let's go through them one by one, no skips, periodt ✨

  • PARAM_GET_FMAX_CAP β€” get the frequency cap, in MHz 🌈
  • PARAM_SET_FMAX_CAP β€” set the frequency cap, in MHz πŸ”₯
  • PARAM_GET_PWR_CAP β€” get the socket power cap, in mW πŸ“
  • PARAM_SET_PWR_CAP β€” set the socket power cap, in mW ⭐
  • PARAM_GET_GFX_MODE β€” get the graphics mode, and it's 0/1 bestie, that's it πŸ’€
  • PARAM_SET_GFX_MODE β€” set the graphics mode, also 0/1, we love a binary moment πŸ™ˆ
  • PARAM_GET_CURR_TEMP β€” get the current temperature, in degrees C 🌑️ (not an emoji from the list but the vibe demanded it, ngl)
  • PARAM_GET_FMAX_MAX β€” get the maximum allowed value for frequency, in MHz πŸ‘‘
  • PARAM_GET_FMAX_MIN β€” get the minimum allowed value for frequency, in MHz 🌸
  • PARAM_GET_SOC_PWR_MAX β€” get the maximum allowed value for SoC power, in mw 🧚
  • PARAM_GET_SOC_PWR_MIN β€” get the minimum allowed value for SoC power, in mw πŸ’œ
  • PARAM_GET_SOC_PWR_CUR β€” get the current value for SoC Power, in mW πŸ”₯
heads up: the units in the original are literally written MHz, mW, 0/1, degrees C, and then mw (lowercase w!) for the SoC max/min ones, and mW again for the current one β€” so yeah, keep an eye on that casing, iykyk πŸ’…

πŸŽ€ SEE ALSO πŸŽ€

go read these next, bestie, they're all connected:


and that's the whole page, bestie 🫢 this came out of ./include/uapi/linux, dated October 2026, and it's filed under enum dbc_cmd_msg(9) β€” slay, that's a wrap πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from