STRUCT AMDXDNA_DRM_QUERY_HWCTX(9)
π 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
- 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