ENUM VGA_SWITCHEROO_CLIENT_ID(9)
π 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 invga_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.henum 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
- 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