STRUCT AMDXDNA_DRM_VA_TBL(9)
π 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 ofdmabuf. 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: whendmabuf_fdis used,num_entriesmust 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
- 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