STRUCT AMDXDNA_DRM_SET_STATE(9)
β¨ 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 inenum 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 inputparam. gotta tell the kernel how much you're handing over, fr fr πbufferβ pointer to the inputparam. this is the actual "here's your stuff" moment β¨
ngl,parampicks what you're setting, andbuffer+buffer_sizeare 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
- 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