hl_get_pci_memory_region(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 to hl_device structure.
  • 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 🌈


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