vbg_acquire_...capabilities(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… vbg_acquire_...capabilities(9) πŸ’…

okay so this is a page from the Kernel API Manual, section 9 (yes, the big-kid kernel-functions section, we love her πŸ‘‘). Buckle up bestie, we're grabbing exclusive access to guest capabilities and it's gonna be iconic.


✨ NAME ✨

vbg_acquire_session_capabilities β€” the function that acquires (as in: gets exclusive access to, no sharing, no tag-teaming πŸ™…β€β™€οΈ) the guest capabilities for a session.


🌸 SYNOPSIS 🌸

int vbg_acquire_session_capabilities (struct vbg_dev *gdev , struct
vbg_session *session , u32 or_mask , u32 not_mask , u32 flags , bool
session_termination );

literally the whole signature, copied exactly, no notes πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

  • gdev β€” the Guest extension device. that's the whole vibe, she's the device. πŸ‘‘
  • session β€” the session. the main character, honestly. ⭐
  • or_mask β€” the capabilities you wanna add. get them in there 🫢
  • not_mask β€” the capabilities you wanna remove. bye bestie πŸ‘‹
  • flags β€” flags, and the flags are VBGL_IOC_AGC_FLAGS_XXX. that's the canonical spelling, don't come for me 😭
  • session_termination β€” set this if we're being called by the session cleanup code. it tweaks the error handling so we do a proper session cleanup even if the host misbehaves πŸ™ˆ like, host acting up? doesn't matter, we clean up correctly anyway. periodt.

πŸ¦‹ DESCRIPTION πŸ¦‹

Takes the session mutex. that's it. that's the description. she's short and she knows it πŸ’…βœ¨

ngl the whole description is one line and honestly? iconic of her. but fr fr: the thing it does is take the session mutex. don't read more into it than that.

🌈 RETURN 🌈

0 or a negative errno value. slay if it's 0, and if it's negative… well, negative errno is giving "something went sideways" πŸ’€ but at least it's honest.


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/virt/vboxguest/vboxguest_core.c β€” go read the source, it's right there πŸ“

and the whole friend group, in the exact order they were introduced:


πŸ’œ the sign-off πŸ’œ

this page lives at ./drivers/virt/vboxguest, dated October 2026, and it's filed under vbg_acquire_...capabilities(9) in the Kernel API Manual. ok that's the whole page, go take the mutex bestie, ily πŸ§šβ€β™€οΈπŸ’–βœ¨

πŸ“¦ where this page comes from