diff options
author | Timos Ampelikiotis <t.ampelikiotis@virtualopensystems.com> | 2023-03-17 14:59:49 +0100 |
---|---|---|
committer | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-03 15:18:54 +0300 |
commit | 75dbf6ff44fc7f499f401265703d4bca5aaf3a79 (patch) | |
tree | c46aa78e02026d26708afb6451890ba13dbfea2f /virtio_loopback.c | |
parent | 7dc0d72ab800c9d65d44cc3ba41f2bc3083c1d48 (diff) |
Update/Polish virtio-loopback-adapter Delta release:
- Add new ioctl for sharing communication shared struct
- Remove old ioctls and comments
Signed-off-by: Timos Ampelikiotis <t.ampelikiotis@virtualopensystems.com>
Diffstat (limited to 'virtio_loopback.c')
-rw-r--r-- | virtio_loopback.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/virtio_loopback.c b/virtio_loopback.c index 0eaac50..38b4209 100644 --- a/virtio_loopback.c +++ b/virtio_loopback.c @@ -2122,8 +2122,8 @@ int virtio_loopback_start(void) */ (void)ioctl(fd, EFD_INIT, &info); - /* Map notification mechanism */ - /* Multiple mmaps: /dev/loopback-0/vqs, /dev/loopback-0/ctlr */ + /* Map communication mechanism */ + (void)ioctl(fd, SHARE_COM_STRUCT); address = mmap(NULL, PAGE_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); if (address == MAP_FAILED) { perror("mmap operation failed"); |