STRUCT AMDXDNA_DRM_GET_RESOURCE_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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: _max is the ceiling, _curr is 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.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_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