vga_switche...layed_switch(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ vga_switcheroo_process_delayed_switch ✨

okay bestie, welcome to the vga_switcheroo_process_delayed_switch page πŸ’… this one lives in the Kernel API Manual, and it's literally the "did you forget to do the thing?" helper of the graphics-switching world πŸ¦‹


🌸 NAME 🌸

vga_switcheroo_process_delayed_switch β€” helper for delayed switching πŸŽ€


πŸ’– SYNOPSIS πŸ’–

int vga_switcheroo_process_delayed_switch (void );

🧚 ARGUMENTS 🧚

  • void β€” no arguments, bestie. none. zero. nada. it takes nothing πŸ™ˆ and honestly? iconic of it.

πŸ”₯ DESCRIPTION πŸ”₯

So here's the tea β˜• β€” this function processes a delayed switch if one is pending. that's it. that's the whole vibe check. if there's a delayed switch sitting around waiting, this is the function that goes "okay girl, let's get you processed" πŸ’…βœ¨

if nothing's pending? congrats, it's got nothing to do. see the RETURN section for how that goes πŸ‘€


🌈 RETURN 🌈

  • 0 on success πŸŽ‰ slay.
  • -EINVAL if there's no delayed switch pending, if the client has unregistered in the meantime, or if there are other clients blocking the switch πŸ˜­πŸ’€ β€” multiple reasons, all of them valid, all of them giving "not right now bestie".
also important: if the actual switch fails, an error is reported and 0 is returned πŸ”₯ like, the switch didn't work, but this function still hands you back 0. so don't just trust the 0 blindly, iykyk 🫢

πŸ‘‘ SEE ALSO πŸ‘‘

go read these too, fr fr πŸ“š:

  • Kernel file ./drivers/gpu/vga/vga_switcheroo.c Overview(9)
  • struct vga_switcheroo_client(9)
  • struct vgasr_priv(9)
  • vga_switcheroo_register_handler(9)
  • vga_switcheroo_unregister_handler(9)
  • vga_switcheroo_handler_flags(9)
  • vga_switcheroo_register_client(9)
  • vga_switcheroo_register_audio_client(9)
  • vga_switcheroo_client_probe_defer(9)
  • vga_switcheroo_get_client_state(9)
  • vga_switcheroo_unregister_client(9)
  • vga_switcheroo_client_fb_set(9)
  • vga_switcheroo_lock_ddc(9)
  • vga_switcheroo_unlock_ddc(9)
  • Manual switching and manual power control(9)
  • Driver power control(9)
  • vga_switcheroo_init_domain_pm_ops(9)

and that's the whole page, bestie 🫢 it came from ./drivers/gpu/vga, dated October 2026, and it's part of the Kernel API Manual πŸ’œ mwah, go switch some graphics (delayed-ly) βœ¨πŸŽ€

πŸ“¦ where this page comes from