STRUCT VMW_EVENT_FENCE_ACTION(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 with dma_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 a struct drm_device so 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 time tv_sec val when the fence signals. so like, non-null = it gets filled in, null = it doesn't. simple as πŸŽ€
  • tv_usec β€” must be set if tv_sec is set, and the variable pointed to will be assigned the current time tv_usec val 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 that tv_usec one is a lil strict β€” "must be set if tv_sec is 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