STRUCT AMDXDNA_DRM_VA_TBL(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct amdxdna_drm_va_tbl(9)

okay so bestie, welcome to the Kernel API Manual page for struct amdxdna_drm_va_tbl β€” yes that's a mouthful, yes it's from the kernel, and yes we're gonna get through it together 🫢

The NAME section is literally just the struct name, no fancy subtitle, no blurb, nothing. Iconic minimalism honestly. ✨

✨ SYNOPSIS ✨

Here's the whole struct, copy-paste-exact, don't touch a single character:

struct amdxdna_drm_va_tbl {
    __s32 dmabuf_fd;
    __u32 num_entries;
    struct amdxdna_drm_va_entry va_entries[];
 };

πŸŽ€ Members πŸŽ€

  • dmabuf_fd β€” the fd of dmabuf. that's it, that's the field πŸ’…
  • num_entries β€” number of va entries. a count, bestie, a humble little count πŸ”’
  • va_entries β€” array of va entries. the flexible-array main character of the whole struct πŸ‘‘

🌸 Description 🌸

Okay so the vibe here is: the input can be either a dmabuf fd or a virtual address entry table. Pick your fighter, not both. πŸ₯Š

⚠️ and here's the rule that actually matters: when dmabuf_fd is used, num_entries must be zero. that's a must, not a maybe, not a "if you feel like it" β€” zero. fr fr 🚨

πŸ’– SEE ALSO πŸ’–

The kernel file lives at ./include/uapi/drm/amdxdna_accel.h β€” go say hi to it. πŸ‘‹ And here's the whole friend group of structs, every single one, no cap:

  • 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_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_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 page!! πŸ¦‹ sign-off time: this one came out of ./include/uapi/drm, dated October 2026, and it's page struct amdxdna_drm_va_tbl(9) of the Kernel API Manual β€” slay, go read your headers bestie πŸ’œπŸŒˆβ­

πŸ“¦ where this page comes from