pcim_p2pdma_init(9)
β¨ pcim_p2pdma_init β a kernel API manual moment π
okay so bestie, we're in the Kernel API Manual, section 9 (that's the kernel-api girlies, iykyk) π. Buckle up, this one's short but iconic.
πΈ NAME πΈ
pcim_p2pdma_init β literally just Initialise peer-to-peer DMA providers. that's the whole vibe. π
β SYNOPSIS β
int pcim_p2pdma_init (struct pci_dev *pdev );
that's it. one function, one argument, returns an int. she's lowkey minimal and we respect it. β¨
π¦ ARGUMENTS π¦
pdevβ the PCI device you want to enable P2PDMA for. she's the main character here, the whole reason we're gathered today. π«Ά
π DESCRIPTION π
okay so here's the tea, fr fr: this function initializes the peer-to-peer DMA infrastructure for a PCI device.
not me just saying "infrastructure" like it's nothing β she allocates and sets up all the necessary data structures to support P2PDMA operations, including mapping type tracking. so yeah, she's doing the behind-the-scenes setup work so the rest of the P2PDMA girlies can actually function. no cap, it's giving backstage crew at the met gala. π
π SEE ALSO π
kernel file ./drivers/pci/p2pdma.c plus the whole friend group, all of whom are absolutely iconic:
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_map_type(9)pci_p2pdma_enable_store(9)pci_p2pdma_enable_show(9)
like, that's a whole squad. go say hi. π
π sign-off π
that's the page bestie!! this one lives under ./drivers/pci and it's dated October 2026 β so yes, she's from the future and she's thriving. periodt. π
β¨
π¦ 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