14736ccfpfg/*-
24736ccfpfg * SPDX-License-Identifier: BSD-3-Clause
34736ccfpfg *
4af2d834attilio * Copyright (c) 2007-2009 Google Inc.
5af2d834attilio * All rights reserved.
6af2d834attilio *
7af2d834attilio * Redistribution and use in source and binary forms, with or without
8af2d834attilio * modification, are permitted provided that the following conditions are
9af2d834attilio * met:
10af2d834attilio *
11af2d834attilio * * Redistributions of source code must retain the above copyright
12af2d834attilio *   notice, this list of conditions and the following disclaimer.
13af2d834attilio * * Redistributions in binary form must reproduce the above
14af2d834attilio *   copyright notice, this list of conditions and the following disclaimer
15af2d834attilio *   in the documentation and/or other materials provided with the
16af2d834attilio *   distribution.
17af2d834attilio * * Neither the name of Google Inc. nor the names of its
18af2d834attilio *   contributors may be used to endorse or promote products derived from
19af2d834attilio *   this software without specific prior written permission.
20af2d834attilio *
21af2d834attilio * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22af2d834attilio * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23af2d834attilio * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24af2d834attilio * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25af2d834attilio * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26af2d834attilio * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27af2d834attilio * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28af2d834attilio * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29af2d834attilio * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30af2d834attilio * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31af2d834attilio * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32af2d834attilio *
33af2d834attilio * Copyright (C) 2005 Csaba Henk.
34af2d834attilio * All rights reserved.
35013055dasomers *
36013055dasomers * Copyright (c) 2019 The FreeBSD Foundation
37013055dasomers *
38013055dasomers * Portions of this software were developed by BFF Storage Systems, LLC under
39013055dasomers * sponsorship from the FreeBSD Foundation.
40af2d834attilio *
41af2d834attilio * Redistribution and use in source and binary forms, with or without
42af2d834attilio * modification, are permitted provided that the following conditions
43af2d834attilio * are met:
44af2d834attilio * 1. Redistributions of source code must retain the above copyright
45af2d834attilio *    notice, this list of conditions and the following disclaimer.
46af2d834attilio * 2. Redistributions in binary form must reproduce the above copyright
47af2d834attilio *    notice, this list of conditions and the following disclaimer in the
48af2d834attilio *    documentation and/or other materials provided with the distribution.
49af2d834attilio *
50af2d834attilio * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
51af2d834attilio * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
52af2d834attilio * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
53af2d834attilio * ARE DISCLAIMED.  IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
54af2d834attilio * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
55af2d834attilio * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
56af2d834attilio * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
57af2d834attilio * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
58af2d834attilio * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
59af2d834attilio * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
60af2d834attilio * SUCH DAMAGE.
61af2d834attilio *
62af2d834attilio * $FreeBSD$
63af2d834attilio */
64af2d834attilio
65af2d834attilio#ifndef _FUSE_IO_H_
66af2d834attilio#define _FUSE_IO_H_
67af2d834attilio
685c38f95asomersint fuse_io_dispatch(struct vnode *vp, struct uio *uio, int ioflag,
692c20c77asomers    struct ucred *cred, pid_t pid);
70af2d834attilioint fuse_io_strategy(struct vnode *vp, struct buf *bp);
71af2d834attilioint fuse_io_flushbuf(struct vnode *vp, int waitfor, struct thread *td);
72af2d834attilioint fuse_io_invalbuf(struct vnode *vp, struct thread *td);
73af2d834attilio
74af2d834attilio#endif /* _FUSE_IO_H_ */
75