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

Function ndev_allocate

dpdk/drivers/crypto/nitrox/nitrox_device.c:17–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15static struct ndev_list ndev_list = TAILQ_HEAD_INITIALIZER(ndev_list);
16
17static struct nitrox_device *
18ndev_allocate(struct rte_pci_device *pdev)
19{
20 struct nitrox_device *ndev;
21
22 ndev = rte_zmalloc_socket("nitrox device", sizeof(*ndev),
23 RTE_CACHE_LINE_SIZE,
24 pdev->device.numa_node);
25 if (!ndev)
26 return NULL;
27
28 TAILQ_INSERT_TAIL(&ndev_list, ndev, next);
29 return ndev;
30}
31
32static void
33ndev_init(struct nitrox_device *ndev, struct rte_pci_device *pdev)

Callers 1

nitrox_pci_probeFunction · 0.85

Calls 1

rte_zmalloc_socketFunction · 0.85

Tested by

no test coverage detected