STRUCT HL_P2P_REGION(9)
β¨ struct hl_p2p_region(9) β Kernel API Manual β¨
okay bestie, welcome to the Kernel API Manual moment for struct hl_p2p_region(9) π
this one is literally a struct that describes a single P2P memory region, and weβre doing a full field-by-field roll call like itβs the group chat π«Ά no cap.
πΈ NAME πΈ
struct hl_p2p_region β describes a single P2P memory region π
π SYNOPSIS π
struct hl_p2p_region {
struct page **p2ppages;
void *p2pmem;
u64 device_pa;
u64 bar_offset;
u64 size;
int bar;
};
π§ Members π§
these are the members, bestie β every single one is iconic in its own way β¨
p2ppagesβ array of page structs for the P2P memory π¦p2pmemβ virtual address of the P2P memory region πdevice_paβ physical address on the device π₯bar_offsetβ offset within the BAR πsizeβ size of the region in bytes βbarβ BAR number containing this region π
π¦ SEE ALSO π¦
- Kernel file
./drivers/accel/habanalabs/common/hldio.hβstruct hl_dio_stats(9),struct hl_dio(9)π
xoxo, your Unix bestie π
β source/version: ./drivers/accel/habanalabs/common; date: October 2026; page: struct hl_p2p_region(9) πβ¨
π¦ 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