pci_p2pdma_map_type(9)
okay so bestie, welcome to pci_p2pdma_map_type(9) from the Kernel API Manual β it's giving PCI peer-to-peer DMA mapping realness and I'm obsessed π
β¨
πΈ NAME πΈ
pci_p2pdma_map_type β determine the mapping type for P2PDMA transfers. That's the whole name section, periodt. π
π¦ SYNOPSIS π¦
the signature, verbatim, no cap:
enum pci_p2pdma_map_type pci_p2pdma_map_type (struct p2pdma_provider
*provider , struct device *dev );
π ARGUMENTS π
okay two args, both iconic:
providerβ P2PDMA provider structure. no cap, that's the provider vibe.devβ target device for the transfer. where the transfer is headed, bestie.
π DESCRIPTION π
So this function determines how peer-to-peer DMA transfers should be mapped between the provider and the target dev. The mapping type indicates whether the transfer can be done directly through PCI switches or must go through the host bridge. That's the highkey whole point: are we going direct through the switches, or are we going through the host bridge? π«Ά
π SEE ALSO π
peep these, bestie β the kernel file and all the related functions:
- Kernel file
./drivers/pci/p2pdma.c 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_p2pmem_publish(9)pci_p2pdma_enable_store(9)pci_p2pdma_enable_show(9)
okay that's the page, bestie π source/version: ./drivers/pci Β· date: October 2026 Β· page: pci_p2pdma_map_type(9) β signing off, slay π¦β¨
π¦ 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