STRUCT AMDXDNA_DRM_QUERY_HWCTX(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct amdxdna_drm_query_hwctx(9) β€” like, the whole Kernel API Manual, but make it make sense 🫢

okay bestie, sit down, hydrate, and let me tell you about struct amdxdna_drm_query_hwctx ✨ this is the kernel API manual page for it, and honestly? she's giving receipts. this struct is literally the data for a single context β€” one context, all the tea β˜•


🌸 NAME 🌸

struct amdxdna_drm_query_hwctx β€” the data for a single context. that's it, that's the vibe πŸ’–


✨ SYNOPSIS ✨

here's the whole glow-up, laid out exactly:

struct amdxdna_drm_query_hwctx {
    __u32 context_id;
    __u32 start_col;
    __u32 num_col;
    __u32 pad;
    __s64 pid;
    __u64 command_submissions;
    __u64 command_completions;
    __u64 migrations;
    __u64 preemptions;
    __u64 errors;
};

no cap, that's the entire struct. every field is a little main character, so let's meet the cast πŸŽ€


πŸ‘‘ Members πŸ‘‘

  • context_id β€” the ID for this context. her government name, basically πŸ’…
  • start_col β€” the starting column for the partition assigned to this context. where her section of the world begins ✨
  • num_col β€” the number of columns in the partition assigned to this context. how much real estate she's working with πŸ“
  • pad β€” structure padding. not important, just vibes. she's there so the layout stays cute 🌸
  • pid β€” the Process ID of the process that created this context. the origin story, the parent, the one who brought her into this world 😭🫢
  • command_submissions β€” the number of commands submitted to this context. all the asks, all the requests, all the "hey can youβ€”" πŸ’Œ
  • command_completions β€” the number of commands completed by this context. she ate and left no crumbs πŸ”₯
  • migrations β€” the number of times this context has been moved to a different partition. she's been relocated, she's seen things πŸ’€
  • preemptions β€” the number of times this context has been preempted by another context in the same partition. interrupted mid-sentence by someone in her own group chat πŸ™ˆ
  • errors β€” the errors for this context. the L's. we keep them anyway πŸ’œ

πŸ¦‹ SEE ALSO πŸ¦‹

okay so there are a LOT of siblings, and i'm listing every single one because nobody gets left out in this house:

Kernel file ./include/uapi/drm/amdxdna_accel.h struct amdxdna_drm_create_hwctx(9), struct amdxdna_drm_destroy_hwctx(9), struct amdxdna_cu_config(9), struct amdxdna_hwctx_param_config_cu(9), struct amdxdna_drm_config_hwctx(9), struct amdxdna_drm_va_entry(9), struct amdxdna_drm_va_tbl(9), struct amdxdna_drm_create_bo(9), struct amdxdna_drm_get_bo_info(9), struct amdxdna_drm_sync_bo(9), struct amdxdna_drm_exec_cmd(9), struct amdxdna_drm_wait_cmd(9), struct amdxdna_drm_query_aie_status(9), struct amdxdna_drm_query_aie_version(9), struct amdxdna_drm_query_aie_tile_metadata(9), struct amdxdna_drm_query_aie_metadata(9), struct amdxdna_drm_query_clock(9), struct amdxdna_drm_query_clock_metadata(9), struct amdxdna_drm_query_sensor(9), struct amdxdna_drm_get_power_mode(9), struct amdxdna_drm_query_firmware_version(9), struct amdxdna_drm_get_resource_info(9), struct amdxdna_drm_attribute_state(9), struct amdxdna_drm_query_telemetry_header(9), struct amdxdna_drm_get_info(9), struct amdxdna_drm_hwctx_entry(9), struct amdxdna_async_error(9), struct amdxdna_drm_bo_usage(9), struct amdxdna_drm_get_array(9), struct amdxdna_drm_set_state(9), struct amdxdna_drm_set_power_mode(9)


and that's the whole page, bestie!! 🌈 this icon of a man page lives in ./include/uapi/drm and was dated October 2026, so yeah β€” she's from the future, we stan, bye πŸ’–πŸ‘‘βœ¨

πŸ“¦ where this page comes from