hgsmi_get_mode_hints(9)
π hgsmi_get_mode_hints(9) π
okay so this is a page from the Kernel API Manual bestie, and it's literally about grabbing the most recent video mode hints π like the freshest gossip but for display modes, iykyk.
β¨ NAME β¨
hgsmi_get_mode_hints β get most recent video mode hints π₯οΈβ¨
πΈ SYNOPSIS πΈ
int hgsmi_get_mode_hints (struct gen_pool *ctx , unsigned int screens ,
struct vbva_modehint *hints );
π¦ ARGUMENTS π¦
ctxβ the context containing the heap to use π like, this is the whole vibe, the memory situation you're working with.screensβ the number of screens to query hints for, starting at0π so yeah, zero-indexed, keep that in mind bestie.hintsβ array ofvbva_modehintstructures for receiving the hints π this is where the answers land, it's giving drop-off point energy.
β RETURN β
0 or negative errno value π«Ά so like, zero means slay, negative means something went off and you gotta go check that errno.
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/vboxvideo/modesetting.cπ hgsmi_process_display_info(9)hgsmi_update_input_mapping(9)
these are the sister functions, go read them too, they're iconic in their own right π
π reminder: negative return values are a negative errno value, not just "vibes are off" β go look it up properly!
and that's the whole page bestie, no cap π§ this one lives in ./drivers/gpu/drm/vboxvideo, dated October 2026 β catch you in the next release, 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