vbg_set_host_capabilities(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ vbg_set_host_capabilities(9) ✨

okay so bestie, this is a page straight out of the Kernel API Manual (yes, the kernel has a manual, she's iconic like that) and it's all about vbg_set_host_capabilities β€” literally just setting guest capabilities on the host. that's the whole vibe. πŸ’…


🌸 NAME 🌸

vbg_set_host_capabilities β€” set guest capabilities on the host. no cap, that's it, that's the gig 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

int vbg_set_host_capabilities (struct vbg_dev *gdev , struct vbg_session
*session , bool session_termination );

like, copy it exactly please, the spacing is giving whatever it's giving 😭


πŸŽ€ ARGUMENTS πŸŽ€

  • gdev β€” the Guest extension device. she's the main character here πŸ‘‘
  • session β€” the session. that's her. that's the one 🌸
  • session_termination β€” set this if we're being called by the session cleanup code. like, are we doing the goodbye shift or not? πŸ’€

πŸ”₯ DESCRIPTION πŸ”₯

Must be called with gdev->session_mutex hold.

bestie. i need you to hear me. gdev->session_mutex must be held. this is not a suggestion, this is not a vibe, this is a requirement. do not come in here without it fr fr πŸ™ˆ

⭐ RETURN ⭐

0 or a negative errno value. that's the whole range β€” zero for "slay", negative for "oop" ✨


πŸ’œ SEE ALSO πŸ’œ

Kernel file ./drivers/virt/vboxguest/vboxguest_core.c β€” the source, the lore, the origin story 🧚

and the whole friend group, all of them, no one left out:

like, read them all, they're all connected, iykyk πŸ¦‹


πŸ’– that's the page bestie πŸ’– this little cutie lives at ./drivers/virt/vboxguest, dated October 2026, and she answers to the name vbg_set_host_capabilities(9). go forth and hold that mutex. mwah πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from