STRUCT HL_USER_MAPPING(9)
π struct hl_user_mapping(9) π
okay so bestie, welcome to the struct hl_user_mapping(9) page β it's living in the Kernel API Manual, section 9, and it's literally just the tiny little receipt that says "this chunk of device virtual address space is mine, and here's how big it is" β¨
πΈ NAME πΈ
struct hl_user_mapping β user mapping information π
that's it, that's the whole vibe.
π SYNOPSIS π
struct hl_user_mapping {
__u64 dev_va;
__u64 size;
};
like, two fields. two. iconic minimalism honestly π«Ά
β¨ Members β¨
dev_vaβ the device virtual address. this is the address, on the device, no cap πsizeβ the virtual address mapping size. how much space we're talking about π
π₯ SEE ALSO π₯
okay this is the part where the page goes absolutely feral with the cross-references, and we are NOT skipping a single one, because every single one of these is part of the family π
- the kernel file
./include/uapi/drm/habanalabs_accel.hβ that's where this whole thing lives, go look, iykyk enum hl_goya_dma_direction(9)enum hl_device_status(9)struct hl_info_hw_ip_info(9)struct hl_info_pci_counters(9)struct hl_info_clk_throttle(9)struct hl_info_energy(9)struct hl_open_stats_info(9)struct hl_power_info(9)struct hl_info_sync_manager(9)struct hl_info_cs_counters(9)struct hl_info_last_err_open_dev_time(9)struct hl_info_cs_timeout_event(9)struct hl_info_razwi_event(9)struct hl_info_undefined_opcode_event(9)struct hl_info_hw_err_event(9)struct hl_info_fw_err_event(9)struct hl_info_engine_err_event(9)struct hl_info_dev_memalloc_page_sizes(9)struct hl_page_fault_info(9)struct hl_info_args(9)
like i said. the whole friend group. go read them, they're all so good π
ngl there's nothing dangerous here β it's a plain little struct, no syscalls, no flags, no exit statuses, no environment variables. just two __u64s vibing. main character energy, zero drama π
okay bye bestie, mwah π this page came from ./include/uapi/drm, dated October 2026, and it's filed under struct hl_user_mapping(9) in the Kernel API Manual β go forth and map some user space β¨ππ
π¦ 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