aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2021-01-04 16:27:03 +0000
committerGitHub <noreply@github.com>2021-01-04 16:27:03 +0000
commit1e6e49b57e820301e336fe31176335f457a2e94d (patch)
tree634940c9788c0b9ffd9e9e758a1ae9e2ecbfa023 /lib
parent13f1cd8893fad76359c0f1b5232827ad095d1987 (diff)
downloadlibvfio-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.c17
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)
{