hgsmi_update_pointer_shape(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– hgsmi_update_pointer_shape(9) πŸ’–

okay bestie, so this is a page from the Kernel API Manual β€” yes, that Kernel API Manual β€” and today's main character is hgsmi_update_pointer_shape. Like the name literally spoils it: we're passing the host a brand-new mouse pointer shape via an HGSMI command. icon material only πŸ’…βœ¨


✨ NAME ✨

hgsmi_update_pointer_shape β€” Pass the host a new mouse pointer shape via an HGSMI command.

no cap, that's the whole personality of this function πŸŽ€


🌸 SYNOPSIS 🌸

int hgsmi_update_pointer_shape (struct gen_pool *ctx , u32 flags , u32
hot_x , u32 hot_y , u32 width , u32 height , u8 *pixels , u32 len );

it's giving "long signature, big responsibilities" tbh 😭 but we love her anyway 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

okay so here's the squad, one by one, and yes every single one matters:

  • ctx β€” the context containing the heap to be used. think of it as the friend who brought the supplies πŸ’œ
  • flags β€” cursor flags. flags gonna flag, yk? 🚩
  • hot_x β€” horizontal position of the hot spot. that's the x-coordinate of the point that actually "clicks" πŸ‘‘
  • hot_y β€” vertical position of the hot spot. the y half of the same glow-up 🌈
  • width β€” width in pixels of the cursor. measured in pixels, not vibes (sadly) πŸ“
  • height β€” height in pixels of the cursor. the other dimension, serving height as always ⭐
  • pixels β€” pixel data, see VMMDevReqMousePointer for the format. fr fr, go read that one if you wanna know the exact layout πŸ‘€
  • len β€” size in bytes of the pixel data. don't be out here lying about your length, the host will lowkey notice πŸ’€

πŸ”₯ RETURN πŸ”₯

0 or negative errno value.

so either it ate and left no crumbs, or you get a negative errno and it's giving "not me, not today" πŸ˜­πŸ™ˆ


🧚 SEE ALSO 🧚

iykyk β€” these three are the friendship group, and you should absolutely go read them next πŸ’–


aaaand that's the whole page, no notes, absolutely slayed 🌸

cute little sign-off for the record: this lives under ./drivers/gpu/drm/vboxvideo, dated October 2026, and it's page hgsmi_update_pointer_shape(9) of the Kernel API Manual. periodt πŸ’…πŸŽ€

πŸ“¦ where this page comes from