ENUM VGA_SWITCHEROO_CLIENT_ID(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum vga_switcheroo_client_id(9) β€” the Kernel API Manual page you didn't know you needed

okay so bestie, we're in the Kernel API Manual, section 9, and this page is literally just about naming the GPUs. that's it, that's the whole vibe. it lives in ./include/linux (the vga_switcheroo.h enum, to be exact), and it's dated October 2026. no cap, it's a tiny one β€” so let's slay it together πŸŽ€


✨ NAME ✨

enum vga_switcheroo_client_id β€” the client identifier. it's giving "everyone gets a name tag" energy 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

enum vga_switcheroo_client_id {
    VGA_SWITCHEROO_UNKNOWN_ID ,
    VGA_SWITCHEROO_IGD ,
    VGA_SWITCHEROO_DIS ,
    VGA_SWITCHEROO_MAX_CLIENTS

};

look at her. four little constants, all lined up, living their best life. iconic. 🌈


🌸 Constants 🌸

  • VGA_SWITCHEROO_UNKNOWN_ID β€” the initial identifier assigned to vga clients. and here's the tea: figuring out the actual id requires the handler, so GPUs are given their true id in a delayed fashion in vga_switcheroo_enable. it's not lazy, it's fashionably late πŸ’…
  • VGA_SWITCHEROO_IGD β€” integrated graphics device. the one baked right in, the main character that never leaves 🧚
  • VGA_SWITCHEROO_DIS β€” discrete graphics device. the fancy separate one. the guest star πŸ”₯
  • VGA_SWITCHEROO_MAX_CLIENTS β€” and this is the reality check bestie: currently no more than two GPUs are supported. two. that's the whole party 😭

πŸ’œ Description πŸ’œ

so yeah β€” client identifier. that's the function of the whole page, fr fr.

and a lil detail you don't wanna miss: audio clients use the same identifier & 0x100. so yes, mask that bit and they're matching, like friendship bracelets but for hardware πŸ‘‘


πŸŽ€ SEE ALSO πŸŽ€

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

like, go read those too. you'll be obsessed. πŸ“


⭐ reminder: the "two GPUs max" thing is real β€” VGA_SWITCHEROO_MAX_CLIENTS said what it said. don't come for her.

okay that's the whole page!! this lil cutie came to you from the ./include/linux source, October 2026, in the one and only Kernel API Manual, section 9. byeeee, go read a .h file for fun πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from