STRUCT VMW_EVENT_FENCE_ACTION(9)
π struct vmw_event_fence_action(9) π
okay so bestie, we're in the Kernel API Manual today and this one is lowkey a whole vibe β it's giving "fence callback that delivers a DRM event" energy and honestly? iconic. let's get into it π
β¨ NAME β¨
struct vmw_event_fence_action β a fence callback that delivers a DRM event. that's it, that's the whole thing, no cap. π¦
πΈ SYNOPSIS πΈ
struct vmw_event_fence_action {
struct dma_fence_cb base;
struct drm_pending_event *event;
struct drm_device *dev;
uint32_t *tv_sec;
uint32_t *tv_usec;
};
literally copy it exactly like that, bestie, don't be out here "fixing" the spacing π
π Members π
okay so this struct has five members and each one is a main character in its own right, let's go π«Ά
baseβ for use withdma_fence_add_callback(...). that's her job, that's what she does πeventβ a pointer to the pending event. yeah. the pending one. keep up bestie β¨devβ a pointer to astruct drm_deviceso we can access the event stuff. it's giving "I know a guy" energy fr fr π₯tv_secβ if non-null, the variable pointed to will be assigned the current timetv_secval when the fence signals. so like, non-null = it gets filled in, null = it doesn't. simple as πtv_usecβ must be set iftv_secis set, and the variable pointed to will be assigned the current timetv_usecval when the fence signals. so if you set one you gotta set the other, they're a matching set, they come as a pair, no solo acts ππ
ngl thattv_usecone is a lil strict β "must be set iftv_secis set" β but she's just looking out for you bestie, respect the rules π§
π SEE ALSO π
go touch some grass in the kernel file ./drivers/gpu/drm/vmwgfx/vmwgfx_fence.c and then check out these besties too:
and that's the whole page, bestie! π this lil gem lives in ./drivers/gpu/drm/vmwgfx and it's dated October 2026 β from struct vmw_...fence_action(9) with love, mwah ππ slay β
π¦ 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