STRUCT DRM_VMW_MKSSTAT_ADD_ARG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct drm_vmw_mksstat_add_arg(9) πŸ’–

okay so bestie, we're in the Kernel API Manual today and the star of the show is this lil struct, struct drm_vmw_mksstat_add_arg β€” say that five times fast, i dare you 😭 she's a whole vibe and she's here to be understood, so let's GO ✨


🌸 NAME 🌸

struct drm_vmw_mksstat_add_arg β€” and that's literally it, the description box is empty, she said "my name is enough" and honestly? main character energy πŸ‘‘ no cap, there is nothing else on this line, do not go looking for more.


✨ SYNOPSIS ✨

the whole squad, laid out:

struct drm_vmw_mksstat_add_arg {
    __u64 stat;
    __u64 info;
    __u64 strs;
    __u64 stat_len;
    __u64 info_len;
    __u64 strs_len;
    __u64 description;
    __u64 id;
};

eight __u64 fields, all matching, all iconic πŸ’…


πŸŽ€ Members πŸŽ€

let's do a vibe check on every single one, no skipping, we don't do that here 🫢

  • stat β€” pointer to the user-space stat-counters array. bestie, it's page-aligned, don't forget, that's not optional 🌸
  • info β€” pointer to the user-space counter-infos array. also page-aligned, the alignment agenda is real ✨
  • strs β€” pointer to the user-space stat strings. yep, page-aligned too, consistency queen πŸ‘‘
  • stat_len β€” length in bytes of the stat-counters array. just bytes, that's the whole thing πŸ“
  • info_len β€” length in bytes of the counter-infos array. same deal, byte count only πŸ’œ
  • strs_len β€” length in bytes of the stat strings, and lowkey the important part: terminators included. like, count those too, don't ghost them πŸ™ˆ
  • description β€” pointer to the instance descriptor string. heads up, she will be truncated to MKS_GUEST_STAT_INSTANCE_DESC_LENGTH chars β€” so if you wrote a whole novel, only that many chars survive, it's giving "edited for the group chat" 😭
  • id β€” output identifier of the produced record. and if something goes wrong? it's -1. error flag, noted, respect the -1 πŸ’€

πŸ¦‹ Description πŸ¦‹

literally just: this is the argument to the DRM_VMW_MKSSTAT_ADD ioctl. that's the tea β˜• that's the whole description, she's concise and we love that for her πŸ’–


🌈 SEE ALSO 🌈

the extended friend group, all of them, in order, i'm not leaving a single one out 🧚:

  • Kernel file ./include/uapi/drm/vmwgfx_drm.h
  • enum drm_vmw_handle_type(9)
  • struct drm_vmw_getparam_arg(9)
  • struct drm_vmw_size(9)
  • union drm_vmw_surface_create_arg(9)
  • struct drm_vmw_fence_rep(9)
  • struct drm_vmw_bo_rep(9)
  • union drm_vmw_alloc_bo_arg(9)
  • struct drm_vmw_control_stream_arg(9)
  • struct drm_vmw_cursor_bypass_arg(9)
  • struct drm_vmw_fence_wait_arg(9)
  • struct drm_vmw_fence_event_arg(9)
  • struct drm_vmw_shader_create_arg(9)
  • struct drm_vmw_gb_surface_create_req(9)
  • struct drm_vmw_gb_surface_create_rep(9)
  • union drm_vmw_gb_surface_create_arg(9)
  • union drm_vmw_gb_surface_reference_arg(9)
  • enum drm_vmw_synccpu_op(9)
  • struct drm_vmw_synccpu_arg(9)
  • union drm_vmw_extended_context_arg(9)
  • struct drm_vmw_handle_close_arg(9)
  • struct drm_vmw_gb_surface_create_ext_req(9)
  • union drm_vmw_gb_surface_create_ext_arg(9)
  • union drm_vmw_gb_surface_reference_ext_arg(9)
  • struct drm_vmw_msg_arg(9)
  • struct drm_vmw_mksstat_remove_arg(9)

iykyk, that's a whole contact list πŸ‘―β€β™€οΈ


ok that's the whole page bestie, you ate that πŸ“ go forth and pass those __u64s with confidence, and remember: page-aligned or it didn't happen πŸ’…

and that's a wrap on this one, brought to you by ./include/uapi/drm, dated October 2026, filed under struct drm_v...stat_add_arg(9) β€” mwah, stan this manpage, periodt πŸ”₯πŸ‘‘

πŸ“¦ where this page comes from