pci_alloc_p2pmem(9)
okay so bestie, this is pci_alloc_p2pmem(9) from the Kernel API Manual β the little page about allocating peer-to-peer DMA memory. Itβs giving βone function, one jobβ energy, and honestly? Obsessed. π
β¨ NAME β¨
pci_alloc_p2pmem β allocate peer-to-peer DMA memory. periodt. π
π«Ά SYNOPSIS π«Ά
Hereβs the signature, copy-paste girlies:
void * pci_alloc_p2pmem (struct pci_dev *pdev , size_t size );
π ARGUMENTS π
pdevβ the device to allocate memory from. Like, thatβs the device youβre pulling from, bestie. π«Άsizeβ number of bytes to allocate. Yes, bytes. The exact amount you want, fr fr. πΈ
π DESCRIPTION π
Returns the allocated memory or NULL on error. Thatβs the whole tea: success = allocated memory, error = NULL. π
No extra behavior claimed here, bestie β thatβs literally the sentence. π
π SEE ALSO π
Home base is the kernel file ./drivers/pci/p2pdma.c. The full squad:
pcim_p2pdma_init(9)pcim_p2pdma_provider(9)pci_p2pdma_add_resource(9)pci_p2pdma_distance_many(9)pci_has_p2pmem(9)pci_p2pmem_find_many(9)pci_free_p2pmem(9)pci_p2pmem_virt_to_bus(9)pci_p2pmem_alloc_sgl(9)pci_p2pmem_free_sgl(9)pci_p2pmem_publish(9)pci_p2pdma_map_type(9)pci_p2pdma_enable_store(9)pci_p2pdma_enable_show(9)
cute sign-off: source/version ./drivers/pci, date October 2026, and this page is pci_alloc_p2pmem(9). bye bestie ππ¦π
π¦ 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