STRUCT DRM_VMW_MKSSTAT_ADD_ARG(9)
π 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 toMKS_GUEST_STAT_INSTANCE_DESC_LENGTHchars β 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
- 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