hl_get_pci_memory_region(9)
π hl_get_pci_memory_region(9) π
okay so bestie, welcome to the Kernel API Manual β this one is literally about hl_get_pci_memory_region and it's giving βget PCI region for given addressβ energy. no cap, let's get into it π«Ά
β¨ NAME β¨
hl_get_pci_memory_regionβ get PCI region for given address π
πΈ SYNOPSIS πΈ
enum pci_region hl_get_pci_memory_region (struct hl_device *hdev , u64
addr );
π ARGUMENTS π
hdevβ Pointer tohl_devicestructure.addrβ device address.
π¦ DESCRIPTION π¦
Okay so on success this returns the region index β slay. Otherwise it returns PCI_REGION_NUMBER, which is the invalid region index, so likeβ¦ that's the βnope, not a real regionβ answer, bestie. π
π SEE ALSO π
- Kernel file:
./drivers/accel/habanalabs/common/pci/pci.c hl_pci_bars_map(9)hl_pci_bars_unmap(9)hl_pci_elbi_write(9)hl_pci_iatu_write(9)hl_pci_set_inbound_region(9)hl_pci_set_outbound_region(9)hl_pci_init(9)hl_pci_fini(9)
xoxo, your kernel bestie π β source/version: ./drivers/accel/habanalabs/com..., date: October 2026, page: hl_get_pci_memory_region(9). periodt.
π¦ 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