diff options
author | John Levon <john.levon@nutanix.com> | 2021-01-04 16:27:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-04 16:27:03 +0000 |
commit | 1e6e49b57e820301e336fe31176335f457a2e94d (patch) | |
tree | 634940c9788c0b9ffd9e9e758a1ae9e2ecbfa023 /lib | |
parent | 13f1cd8893fad76359c0f1b5232827ad095d1987 (diff) | |
download | libvfio-user-1e6e49b57e820301e336fe31176335f457a2e94d.zip libvfio-user-1e6e49b57e820301e336fe31176335f457a2e94d.tar.gz libvfio-user-1e6e49b57e820301e336fe31176335f457a2e94d.tar.bz2 |
remove vestigial vfu_mmap() (#221)
This is no longer useful.
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libvfio-user.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/libvfio-user.c b/lib/libvfio-user.c index 104e618..599b17f 100644 --- a/lib/libvfio-user.c +++ b/lib/libvfio-user.c @@ -1231,23 +1231,6 @@ vfu_run_ctx(vfu_ctx_t *vfu_ctx) return err >= 0 ? 0 : err; } -/* FIXME this is not enough anymore ? */ -void * -vfu_mmap(vfu_ctx_t *vfu_ctx, off_t offset, size_t length) -{ - if ((vfu_ctx == NULL) || (length == 0) || !PAGE_ALIGNED(offset)) { - if (vfu_ctx != NULL) { - vfu_log(vfu_ctx, LOG_DEBUG, "bad device mmap region %#lx-%#lx\n", - offset, offset + length); - } - errno = EINVAL; - return MAP_FAILED; - } - - return mmap(NULL, length, PROT_READ | PROT_WRITE, MAP_SHARED, - vfu_ctx->fd, offset); -} - static void free_sparse_mmap_areas(vfu_ctx_t *vfu_ctx) { |