summaryrefslogtreecommitdiff
path: root/fs/fuse/fuse_passthrough.h
blob: 62f12c12ffec829bd239f7b2125f9cb529919a90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 */

#ifndef _FS_FUSE_PASSTHROUGH_H
#define _FS_FUSE_PASSTHROUGH_H

#include "fuse_i.h"

#include <linux/fuse.h>
#include <linux/file.h>

void fuse_setup_passthrough(struct fuse_conn *fc, struct fuse_req *req);

ssize_t fuse_passthrough_read_iter(struct kiocb *iocb, struct iov_iter *to);

ssize_t fuse_passthrough_write_iter(struct kiocb *iocb, struct iov_iter *from);

void fuse_passthrough_release(struct fuse_file *ff);

#endif /* _FS_FUSE_PASSTHROUGH_H */