MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pci_unmap_resource

Function pci_unmap_resource

dpdk/drivers/bus/pci/pci_common.c:146–160  ·  view source on GitHub ↗

unmap a particular resource */

Source from the content-addressed store, hash-verified

144
145/* unmap a particular resource */
146void
147pci_unmap_resource(void *requested_addr, size_t size)
148{
149 if (requested_addr == NULL)
150 return;
151
152 /* Unmap the PCI memory resource of device */
153 if (rte_mem_unmap(requested_addr, size)) {
154 RTE_LOG(ERR, EAL, "%s(): cannot mem unmap(%p, %#zx): %s\n",
155 __func__, requested_addr, size,
156 rte_strerror(rte_errno));
157 } else
158 RTE_LOG(DEBUG, EAL, " PCI memory unmapped at %p\n",
159 requested_addr);
160}
161/*
162 * Match the PCI Driver and Device using the ID Table
163 */

Callers 6

pci_uio_map_secondaryFunction · 0.85
pci_uio_map_resourceFunction · 0.85
pci_uio_unmapFunction · 0.85

Calls 2

rte_strerrorFunction · 0.85
rte_mem_unmapFunction · 0.50

Tested by

no test coverage detected