STRUCT AMDXDNA_DRM_SET_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct amdxdna_drm_set_state β€” Kernel API Manual vibes ✨

okay so bestie, welcome to the struct amdxdna_drm_set_state page πŸ’… this is the Kernel API Manual energy, and we're talking about one (1) little struct whose whole entire job is setting the state of the AIE hardware. she's giving "tiny but powerful", she's giving main character energy, and honestly? we're obsessed 🫢


🌸 NAME 🌸

struct amdxdna_drm_set_state β€” Set the state of the AIE hardware.

like literally that's it, that's her whole thing πŸ’–


✨ SYNOPSIS ✨

here's the struct in all her glory, copied exactly, no cap:

struct amdxdna_drm_set_state {
    __u32 param;
    __u32 buffer_size;
    __u64 buffer;
 };

three fields. that's the whole vibe. short, sweet, iconic πŸ‘‘


πŸŽ€ Members πŸŽ€

okay so let's go field by field, bestie, because every single one matters:

  • param β€” this is a value in enum amdxdna_drm_set_param. so she's not just any number, she's a chosen number from that enum. periodt πŸ’…
  • buffer_size β€” the size of the input param. gotta tell the kernel how much you're handing over, fr fr πŸ“
  • buffer β€” pointer to the input param. this is the actual "here's your stuff" moment ✨
ngl, param picks what you're setting, and buffer + buffer_size are how you're handing it over. the whole trio works together, iykyk πŸ¦‹

πŸ¦‹ SEE ALSO πŸ¦‹

the whole squad, the entire friend group, everybody who's anybody in ./include/uapi/drm/amdxdna_accel.h (Kernel file) πŸ’œ

  • 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_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_power_mode(9)

like, that's the whole group chat right there 😭 go read them, they're all iconic in their own way πŸ’–


and that's the page!! πŸŽ€ this lil gem lives in ./include/uapi/drm, dated October 2026, and it's officially a wrap β€” slay, bye bestie, drink some water πŸ’…πŸŒΈ

πŸ“¦ where this page comes from