ENUM VGA_SWITCHEROO_HANDLER_FLAGS_T(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum vga_switcheroo_handler_flags_t (9) β€” Kernel API Manual, bestie edition

okay so we're deep in the ./include/linux directory today and the star of the show is this little enum, enum vga_switcheroo_handler_flags_t. It lives in section 9 of the Kernel API Manual, it's giving "quiet but crucial," and honestly? It ate. Let's get into it πŸ’–


✨ NAME ✨

enum vga_switcheroo_handler_flags_t β€” it's a handler flags bitmask, periodt. That's the whole job. Tiny enum, big responsibilities πŸŽ€


🌸 SYNOPSIS 🌸

enum vga_switcheroo_handler_flags_t {
    VGA_SWITCHEROO_CAN_SWITCH_DDC ,
    VGA_SWITCHEROO_NEEDS_EDP_CONFIG

};

Two constants, no extra drama. Look at them. Icons. πŸ‘‘


πŸ¦‹ Constants πŸ¦‹

Here's where it gets juicy, bestie β€” these two flags are the whole personality of the enum:

  • VGA_SWITCHEROO_CAN_SWITCH_DDC β€” okay so this one is literally answering the question "can the handler switch the DDC lines separately?" Yes or no, no cap. And when it's set, it's signaling to clients that they should call drm_get_edid_switcheroo to probe the EDID. That's the whole vibe β€” it's a little flag that says "hey, go probe it yourself" 🫢
  • VGA_SWITCHEROO_NEEDS_EDP_CONFIG β€” this one is the opposite energy: it's saying the handler is unable to switch the AUX channel separately (😭 rude, but okay). So it signals to clients that the active GPU needs to train the link and communicate the link parameters over to the inactive GPU (mediated by vga_switcheroo, bestie is the middleman). Then the inactive GPU may skip the AUX handshake entirely and just set up its output using those pre-calibrated values β€” and yes, that's straight from the DisplayPort specification v1.1a, section 2.5.3.3. Cited. Academic. Slay πŸ“šβœ¨

πŸ’œ Description πŸ’œ

So what is this thing? It's a handler flags bitmask β€” main character energy for handlers, honestly. Handlers use it to declare their capabilities upon registering with vga_switcheroo. Like a little "here's what I can and can't do" bio in flag form. No guessing, no lying, just vibes and capabilities 🧚


πŸ”₯ SEE ALSO πŸ”₯

go read these next, iykyk:

  • Kernel file ./include/linux/vga_switcheroo.h enum
  • vga_switcheroo_state(9)
  • enum vga_switcheroo_client_id(9)
  • struct vga_switcheroo_handler(9)
  • struct vga_switcheroo_client_ops(9)

aaaand that's the page! πŸ’€ It came from ./include/linux and it's dated October 2026 β€” so like, mark your calendar bestie, this manual page is from the future and it's still serving. bye, ily, go switch some DDC lines responsibly πŸ’–πŸŒˆβœ¨

πŸ“¦ where this page comes from