pci_p2pdma_add_resource(9)
π pci_p2pdma_add_resource(9) β Kernel API Manual π
okay bestie, welcome to the Kernel API Manual page for pci_p2pdma_add_resource(9). it's giving βlet's make some memory p2p-readyβ energy, and honestly? iconic. β¨π
π NAME π
pci_p2pdma_add_resource β add memory for use as p2p memory. periodt. π
β¨ SYNOPSIS β¨
int pci_p2pdma_add_resource (struct pci_dev *pdev , int bar , size_t
size , u64 offset );
π«Ά ARGUMENTS π«Ά
pdevβ the device to add the memory to. this is the main character device getting the memory glow-up. πbarβ the PCI BAR to add. yes bestie, that BAR. πsizeβ size of the memory to add; it may be zero to use the whole BAR. zero means whole BAR, no cap. π―offsetβ offset into the PCI BAR. it's the starting point. π
π DESCRIPTION π
okay so the memory will be given ZONE_DEVICE struct pages, so that it may be used with any DMA request. that's the whole point, and it ate. π₯
π¦ SEE ALSO π¦
Kernel file: ./drivers/pci/p2pdma.c
pcim_p2pdma_init(9)pcim_p2pdma_provider(9)pci_p2pdma_distance_many(9)pci_has_p2pmem(9)pci_p2pmem_find_many(9)pci_alloc_p2pmem(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)
and that's the page, bestie! this was pci_p2pdma_add_resource(9) from the Kernel API Manual, served from ./drivers/pci with the October 2026 date. signing off with maximum p2p energy. ππ¦π
π¦ 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