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

Function device_unmap_resources

dpdk/drivers/bus/platform/platform.c:204–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204static void
205device_unmap_resources(struct rte_platform_device *pdev)
206{
207 struct rte_platform_resource *res;
208 unsigned int i;
209
210 for (i = 0; i < pdev->num_resource; i++) {
211 res = &pdev->resource[i];
212 munmap(res->mem.addr, res->mem.len);
213 free(res->name);
214 }
215
216 free(pdev->resource);
217 pdev->resource = NULL;
218 pdev->num_resource = 0;
219}
220
221static int
222read_sysfs_string(const char *path, char *buf, size_t size)

Callers 2

device_map_resourcesFunction · 0.85
device_cleanupFunction · 0.85

Calls 1

freeFunction · 0.50

Tested by

no test coverage detected