STRUCT AMDXDNA_DRM_CREATE_BO(9)
π struct amdxdna_drm_create_bo β bestie edition π
okay so this is from the Kernel API Manual, and it's literally the page for struct amdxdna_drm_create_bo(9). sit down, grab a strawberry drink π, and let's get into it β no cap, it's short and slay.
β¨ NAME β¨
struct amdxdna_drm_create_bo β the struct you use to create a buffer object. that's it, that's the vibe. main character energy for your buffer π«Ά
πΈ SYNOPSIS πΈ
here's the whole shape of it, exactly as it is, do not come for me about the formatting:
struct amdxdna_drm_create_bo {
__u64 flags;
__u64 vaddr;
__u64 size;
__u32 type;
__u32 handle;
};
likeβ¦ look at her. five fields. iconic. π
π Members π
flagsβ the buffer flags. and it's MBZ. yes bestie, MBZ. respect the MBZ. πvaddrβ the user VA of the buffer, if applied. also MBZ. two MBZs in one struct, we love consistency β¨sizeβ the size, in bytes. the actual number, the moment of truth, the whole point π¦typeβ the buffer type. which kind of buffer, iykyk πhandleβ the returned DRM buffer object handle. not you setting it β it comes back to you, like a little gift π π
ngl the handle one is the cutest detail: you're not putting anything in, the kernel's handing it back. returned. periodt. π₯
π§ SEE ALSO π§
okay this is the long part and yes, we're doing all of them, in order, no skipping, no "and others" β every single one is getting its moment:
- the kernel file
./include/uapi/drm/amdxdna_accel.hstruct 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_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)
thirty-two plus the header file. that's a whole friend group and we're not leaving anyone out π π«Ά
and that's the whole page!! she's giving "short but thorough" and honestly? obsessed.
sign-off time β¨ this one lives over in ./include/uapi/drm, and the version/date stamp on it is October 2026. see you in the group chat, bestie β go create some buffer objects ππ
π¦ 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