STRUCT AMDXDNA_DRM_GET_RESOURCE_INFO(9)
π struct amdxdna_drm_get_resource_info(9) β like, the Kernel API Manual page, bestie β¨
okay so before we even start β this is straight out of the Kernel API Manual, and it's the whole vibe check on struct amdxdna_drm_get_resource_info. Yes, that's a mouthful. No, we're not renaming it. It's iconic, it stays. π
β¨ NAME β¨
struct amdxdna_drm_get_resource_info β literally just Get resource information. That's the whole job. It gets resource info. Slay. π
π¦ SYNOPSIS π¦
here's the struct in all its glory, copy it exactly bestie, do NOT freestyle:
struct amdxdna_drm_get_resource_info {
__u64 npu_clk_max;
__u64 npu_tops_max;
__u64 npu_task_max;
__u64 npu_tops_curr;
__u64 npu_task_curr;
};
πΈ Members πΈ
okay so every single field, one by one, no skipping, we're being thorough today:
npu_clk_maxβ the max H-Clocks. H-Clock maximum. That's the ceiling, bestie. πnpu_tops_maxβ the max TOPs. Yes TOPs, not tops like the clothing item. πnpu_task_maxβ the max number of tasks. The upper limit on tasks. πnpu_tops_currβ the current TOPs. What's happening right now, not the max. π«Άnpu_task_currβ the current number of tasks. Again β current, not max. The way these two pairs match is giving symmetry. β¨
ngl the naming here is so clean it almost writes itself:_maxis the ceiling,_curris the moment. iykyk π
π₯ SEE ALSO π₯
obvi you gotta keep the whole friend group together, so here's everyone in the lore:
- Kernel file
./include/uapi/drm/amdxdna_accel.hstruct 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_query_hwctx(9)struct amdxdna_drm_get_power_mode(9)struct amdxdna_drm_query_firmware_version(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)
like, that's the whole group chat and every single one of them got an invite. periodt. π
and that's the page, bestie!! π§ source is ./include/uapi/drm, dated October 2026, and the header/footer both say struct amdxd...esource_info(9) β yes the man page truncated its own name, it's a whole thing, we don't judge. love that for it. ππΈβ¨
π¦ 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