pci_p2pmem_publish(9)
π NAME π
okay so bestie, this is the pci_p2pmem_publish(9) page from the Kernel API Manual β and it's literally about publishing the peer-to-peer DMA memory for use by other devices with pci_p2pmem_find() β¨
π¦ SYNOPSIS π¦
void pci_p2pmem_publish (struct pci_dev *pdev , bool publish );
π ARGUMENTS π
pdevβ the device with peer-to-peer DMA memory to publishpublishβ set totrueto publish the memory,falseto unpublish it
πΈ DESCRIPTION πΈ
Published memory can be used by other PCI device drivers for peer-2-peer DMA operations. Non-published memory is reserved for exclusive use of the device driver that registers the peer-to-peer memory.
Likeβ¦ that's the whole vibe: publish it and other PCI device drivers can use it for peer-2-peer DMA π₯. Don't publish it and it stays reserved for exclusive use by the driver that registered that peer-to-peer memory β periodt π
π SEE ALSO π
Kernel file ./drivers/pci/p2pdma.c is the home base, and the whole friend group is:
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_alloc_p2pmem(9)pci_free_p2pmem(9)pci_p2pmem_virt_to_bus(9)pci_p2pmem_alloc_sgl(9)pci_p2pmem_free_sgl(9)pci_p2pdma_map_type(9)pci_p2pdma_enable_store(9)pci_p2pdma_enable_show(9)
xoxo bestie π source/version: ./drivers/pci β’ October 2026 β’ manual: pci_p2pmem_publish(9) π«Άβ¨
π¦ 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