hgsmi_update_pointer_shape(9)
π 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, seeVMMDevReqMousePointerfor 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 π§
- Kernel file
./drivers/gpu/drm/vboxvideo/hgsmi_base.cβ go touch some source code bestie π hgsmi_report_flags_location(9)hgsmi_send_caps_info(9)hgsmi_query_conf(9)
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
- 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