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

Function bcmfs_attach_vfio

dpdk/drivers/crypto/bcmfs/bcmfs_vfio.c:58–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58int
59bcmfs_attach_vfio(struct bcmfs_device *dev)
60{
61 int ret;
62 int vfio_dev_fd;
63 void *v_addr = NULL;
64 uint32_t size = 0;
65
66 ret = vfio_map_dev_obj(dev->dirname, dev->name,
67 &size, &v_addr, &vfio_dev_fd);
68 if (ret)
69 return -1;
70
71 dev->mmap_size = size;
72 dev->mmap_addr = v_addr;
73 dev->vfio_dev_fd = vfio_dev_fd;
74
75 return 0;
76}
77
78void
79bcmfs_release_vfio(struct bcmfs_device *dev)

Callers 1

fsdev_allocate_one_devFunction · 0.85

Calls 1

vfio_map_dev_objFunction · 0.85

Tested by

no test coverage detected