has_sm5_context(9)
π has_sm5_context(9) β Kernel API Manual π
okay bestie, so this one's from the Kernel API Manual and honestly it's a little baby function β but a useful little baby function. Let's get into it β¨
πΈ NAME πΈ
has_sm5_context β does the device support SM5 context? that's it. that's the whole vibe check π₯
π¦ SYNOPSIS π¦
bool has_sm5_context (const struct vmw_private *dev_priv );
like, you hand it a device and it hands you back a bool. no cap, that's the entire contract π
π ARGUMENTS π
dev_privβ the device private π«Ά like, the littlestruct vmw_privatethat holds all the tea about your device. literally all it wants from you.
β RETURN β
it returns a bool value β true if the device supports SM5 context, false if it does not. two options, no in-between, she's not complicated π
β¨
π SEE ALSO π
the kernel file ./drivers/gpu/drm/vmwgfx/vmwgfx_drv.h, and honestly the whole friend group:
struct vmw_resource(9)struct vmw_surface_metadata(9)struct vmw_surface(9)struct vmw_res_cache_entry(9)enum vmw_dma_map_mode(9)struct vmw_sg_table(9)struct vmw_piter(9)struct vmw_sw_context(9)enum vmw_sm_type(9)has_sm4_context(9)has_sm4_1_context(9)has_gl43_context(9)vmw_resource_mob_attached(9)vmw_fifo_caps(9)vmw_is_cursor_bypass3_enabled(9)vmw_piter_next(9)vmw_piter_dma_addr(9)vmw_piter_page(9)struct vmw_diff_cpy(9)VMW_DEBUG_USER(9)VMW_DEBUG_KMS(9)vmw_fifo_mem_read(9)vmw_fifo_mem_write(9)
like I said. friend group. iykyk ππ
mwah π that's the whole page, from ./drivers/gpu/drm/vmwgfx, dated October 2026 β go forth and check those SM5 contexts bestie, you've got this π§π
π¦ 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