1/* $NetBSD: rumpvnode_if.h,v 1.31 2017/07/12 09:31:59 hannken Exp $ */
2
3/*
4 * Warning: DO NOT EDIT! This file is automatically generated!
5 * (Modifications made here may easily be lost!)
6 *
7 * Created from the file:
8 * NetBSD: vnode_if.src,v 1.77 2017/07/12 09:31:07 hannken Exp
9 * by the script:
10 * NetBSD: vnode_if.sh,v 1.66 2017/06/04 08:03:26 hannken Exp
11 */
12
13/*
14 * Copyright (c) 1992, 1993, 1994, 1995
15 * The Regents of the University of California. All rights reserved.
16 *
17 * Redistribution and use in source and binary forms, with or without
18 * modification, are permitted provided that the following conditions
19 * are met:
20 * 1. Redistributions of source code must retain the above copyright
21 * notice, this list of conditions and the following disclaimer.
22 * 2. Redistributions in binary form must reproduce the above copyright
23 * notice, this list of conditions and the following disclaimer in the
24 * documentation and/or other materials provided with the distribution.
25 * 3. Neither the name of the University nor the names of its contributors
26 * may be used to endorse or promote products derived from this software
27 * without specific prior written permission.
28 *
29 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
30 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
31 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
32 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
33 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
34 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
35 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
36 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
37 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39 * SUCH DAMAGE.
40 */
41
42#ifndef _RUMP_RUMPVNODE_IF_H_
43#define _RUMP_RUMPVNODE_IF_H_
44
45struct buf;
46struct flock;
47struct knote;
48struct vm_page;
49
50#ifndef _KERNEL
51#include <stdbool.h>
52#endif
53
54int RUMP_VOP_BWRITE(struct vnode *, struct buf *);
55int RUMP_VOP_LOOKUP(struct vnode *, struct vnode **, struct componentname *);
56int RUMP_VOP_CREATE(struct vnode *, struct vnode **, struct componentname *,
57 struct vattr *);
58int RUMP_VOP_MKNOD(struct vnode *, struct vnode **, struct componentname *,
59 struct vattr *);
60int RUMP_VOP_OPEN(struct vnode *, int, struct kauth_cred *);
61int RUMP_VOP_CLOSE(struct vnode *, int, struct kauth_cred *);
62int RUMP_VOP_ACCESS(struct vnode *, int, struct kauth_cred *);
63int RUMP_VOP_GETATTR(struct vnode *, struct vattr *, struct kauth_cred *);
64int RUMP_VOP_SETATTR(struct vnode *, struct vattr *, struct kauth_cred *);
65int RUMP_VOP_READ(struct vnode *, struct uio *, int, struct kauth_cred *);
66int RUMP_VOP_WRITE(struct vnode *, struct uio *, int, struct kauth_cred *);
67int RUMP_VOP_FALLOCATE(struct vnode *, off_t, off_t);
68int RUMP_VOP_FDISCARD(struct vnode *, off_t, off_t);
69int RUMP_VOP_IOCTL(struct vnode *, u_long, void *, int, struct kauth_cred *);
70int RUMP_VOP_FCNTL(struct vnode *, u_int, void *, int, struct kauth_cred *);
71int RUMP_VOP_POLL(struct vnode *, int);
72int RUMP_VOP_KQFILTER(struct vnode *, struct knote *);
73int RUMP_VOP_REVOKE(struct vnode *, int);
74int RUMP_VOP_MMAP(struct vnode *, int, struct kauth_cred *);
75int RUMP_VOP_FSYNC(struct vnode *, struct kauth_cred *, int, off_t, off_t);
76int RUMP_VOP_SEEK(struct vnode *, off_t, off_t, struct kauth_cred *);
77int RUMP_VOP_REMOVE(struct vnode *, struct vnode *, struct componentname *);
78int RUMP_VOP_LINK(struct vnode *, struct vnode *, struct componentname *);
79int RUMP_VOP_RENAME(struct vnode *, struct vnode *, struct componentname *,
80 struct vnode *, struct vnode *, struct componentname *);
81int RUMP_VOP_MKDIR(struct vnode *, struct vnode **, struct componentname *,
82 struct vattr *);
83int RUMP_VOP_RMDIR(struct vnode *, struct vnode *, struct componentname *);
84int RUMP_VOP_SYMLINK(struct vnode *, struct vnode **,
85 struct componentname *, struct vattr *, char *);
86int RUMP_VOP_READDIR(struct vnode *, struct uio *, struct kauth_cred *,
87 int *, off_t **, int *);
88int RUMP_VOP_READLINK(struct vnode *, struct uio *, struct kauth_cred *);
89int RUMP_VOP_ABORTOP(struct vnode *, struct componentname *);
90int RUMP_VOP_INACTIVE(struct vnode *, bool *);
91int RUMP_VOP_RECLAIM(struct vnode *);
92int RUMP_VOP_LOCK(struct vnode *, int);
93int RUMP_VOP_UNLOCK(struct vnode *);
94int RUMP_VOP_BMAP(struct vnode *, int64_t, struct vnode **, int64_t *, int *);
95int RUMP_VOP_STRATEGY(struct vnode *, struct buf *);
96int RUMP_VOP_PRINT(struct vnode *);
97int RUMP_VOP_ISLOCKED(struct vnode *);
98int RUMP_VOP_PATHCONF(struct vnode *, int, register_t *);
99int RUMP_VOP_ADVLOCK(struct vnode *, void *, int, struct flock *, int);
100int RUMP_VOP_WHITEOUT(struct vnode *, struct componentname *, int);
101int RUMP_VOP_GETPAGES(struct vnode *, off_t, struct vm_page **, int *, int,
102 int, int, int);
103int RUMP_VOP_PUTPAGES(struct vnode *, off_t, off_t, int);
104int RUMP_VOP_CLOSEEXTATTR(struct vnode *, int, struct kauth_cred *);
105int RUMP_VOP_GETEXTATTR(struct vnode *, int, const char *, struct uio *,
106 size_t *, struct kauth_cred *);
107int RUMP_VOP_LISTEXTATTR(struct vnode *, int, struct uio *, size_t *, int,
108 struct kauth_cred *);
109int RUMP_VOP_OPENEXTATTR(struct vnode *, struct kauth_cred *);
110int RUMP_VOP_DELETEEXTATTR(struct vnode *, int, const char *,
111 struct kauth_cred *);
112int RUMP_VOP_SETEXTATTR(struct vnode *, int, const char *, struct uio *,
113 struct kauth_cred *);
114
115#endif /* !_RUMP_RUMPVNODE_IF_H_ */
116