STRUCT HL_P2P_REGION(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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