has_sm5_context(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 little struct vmw_private that 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:

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