blob: 12429ac3e597f09257116b090b7ece0940369b9c [file] [log] [blame]
Nikhilesh Reddy759832b2017-07-26 09:41:57 +05301/*
2 * Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 and
6 * only version 2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 */
14
15#ifndef _FS_FUSE_PASSTHROUGH_H
16#define _FS_FUSE_PASSTHROUGH_H
17
18#include "fuse_i.h"
19
20#include <linux/fuse.h>
21#include <linux/file.h>
22
23void fuse_setup_passthrough(struct fuse_conn *fc, struct fuse_req *req);
24
25ssize_t fuse_passthrough_read_iter(struct kiocb *iocb, struct iov_iter *to);
26
27ssize_t fuse_passthrough_write_iter(struct kiocb *iocb, struct iov_iter *from);
28
29void fuse_passthrough_release(struct fuse_file *ff);
30
31#endif /* _FS_FUSE_PASSTHROUGH_H */