Dr. David Alan Gilbert | d14bf58 | 2018-06-07 20:11:14 +0100 | [diff] [blame] | 1 | /* |
| 2 | * virtio-fs glue for FUSE |
| 3 | * Copyright (C) 2018 Red Hat, Inc. and/or its affiliates |
| 4 | * |
| 5 | * Authors: |
| 6 | * Dave Gilbert <dgilbert@redhat.com> |
| 7 | * |
| 8 | * Implements the glue between libfuse and libvhost-user |
| 9 | * |
| 10 | * This program can be distributed under the terms of the GNU LGPLv2. |
| 11 | * See the file COPYING.LIB |
| 12 | */ |
| 13 | |
| 14 | #ifndef FUSE_VIRTIO_H |
| 15 | #define FUSE_VIRTIO_H |
| 16 | |
| 17 | #include "fuse_i.h" |
| 18 | |
| 19 | struct fuse_session; |
| 20 | |
| 21 | int virtio_session_mount(struct fuse_session *se); |
Liu Bo | 61cfc44 | 2019-06-07 05:43:52 +0800 | [diff] [blame] | 22 | void virtio_session_close(struct fuse_session *se); |
Dr. David Alan Gilbert | f6f3573 | 2018-06-08 19:59:20 +0100 | [diff] [blame] | 23 | int virtio_loop(struct fuse_session *se); |
| 24 | |
Dr. David Alan Gilbert | df57ba9 | 2018-06-18 18:46:01 +0100 | [diff] [blame] | 25 | |
| 26 | int virtio_send_msg(struct fuse_session *se, struct fuse_chan *ch, |
| 27 | struct iovec *iov, int count); |
| 28 | |
Dr. David Alan Gilbert | eb49d18 | 2018-08-15 20:26:05 +0100 | [diff] [blame] | 29 | int virtio_send_data_iov(struct fuse_session *se, struct fuse_chan *ch, |
| 30 | struct iovec *iov, int count, |
| 31 | struct fuse_bufvec *buf, size_t len); |
| 32 | |
Dr. David Alan Gilbert | d14bf58 | 2018-06-07 20:11:14 +0100 | [diff] [blame] | 33 | #endif |