VirtualBox

source: vbox/trunk/src/VBox/Additions/solaris/SharedFolders/vboxvfs_vnops.c@ 16527

Last change on this file since 16527 was 11982, checked in by vboxsync, 16 years ago

All: license header changes for 2.0 (OSE headers, add Sun GPL/LGPL disclaimer)

  • Property svn:eol-style set to native
  • Property svn:keyword set to Id
  • Property svn:keywords set to Id
File size: 7.7 KB
Line 
1/* $Id: vboxvfs_vnops.c 11982 2008-09-02 13:09:44Z vboxsync $ */
2/** @file
3 * VirtualBox File System Driver for Solaris Guests, VNode Operations.
4 */
5
6/*
7 * Copyright (C) 2008 Sun Microsystems, Inc.
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 *
17 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18 * Clara, CA 95054 USA or visit http://www.sun.com if you need
19 * additional information or have any questions.
20 */
21
22#include <sys/param.h>
23#include <sys/systm.h>
24#include <sys/errno.h>
25#include <sys/uio.h>
26#include <sys/cred.h>
27#include <sys/vnode.h>
28#include "vboxvfs.h"
29
30static int VBoxVFS_Open(vnode_t **vpp, int flag, struct cred *cr, caller_context_t *ct)
31{
32}
33
34static int VBoxVFS_Close(vnode_t *vp, int flag, int count, offset_t offset, struct cred *cr, caller_context_t *ct)
35{
36}
37
38static int VBoxVFS_Read(vnode_t *vp, struct uio *uiop, int ioflag, struct cred *cr, caller_context_t *ct)
39{
40}
41
42static int VBoxVFS_Write(vnode_t *vp, struct uio *uiop, int ioflag, struct cred *cr, caller_context_t *ct)
43{
44}
45
46static int VBoxVFS_IOCtl(vnode_t *vp, int cmd, intptr_t arg, int flag, struct cred *cr, int *rvalp, caller_context_t *ct)
47{
48}
49
50static int VBoxVFS_Setfl(vnode_t *vp, int oflags, int nflags, cred_t *cr, caller_context_t *ct)
51{
52}
53
54static int VBoxVFS_Getattr(vnode_t *vp, struct vattr *vap, int flags, struct cred *cr, caller_context_t *ct)
55{
56}
57
58static int VBoxVFS_Setattr(vnode_t *vp, struct vattr *vap, int flags, struct cred *cr, caller_context_t *ct)
59{
60}
61
62static int VBoxVFS_Access(vnode_t *vp, int mode, int flags, struct cred *cr, caller_context_t *ct)
63{
64}
65
66static int VBoxVFS_Fsync(vnode_t *vp, int syncflag, struct cred *cr, caller_context_t *ct)
67{
68}
69
70static void VBoxVFS_Inactive(vnode_t *vp, struct cred *cr, caller_context_t *ct)
71{
72}
73
74static int VBoxVFS_Fid(vnode_t *vp, struct fid *fidp, caller_context_t *ct)
75{
76}
77
78static int VBoxVFS_Lookup(vnode_t *dvp, char *nm, vnode_t **vpp, struct pathname *pnp, int flags, vnode_t *rdir,
79 struct cred *cr, caller_context_t *ct, int *direntflags, pathname_t *realpnp)
80{
81}
82
83static int VBoxVFS_Create(vnode_t *dvp, char *nm, struct vattr *va, enum vcexcl exclusive, int mode, vnode_t **vpp,
84 struct cred *cr, int flag, caller_context_t *ct, vsecattr_t *vsecp)
85{
86}
87
88static int VBoxVFS_Remove(vnode_t *dvp, char *nm, struct cred *cr, caller_context_t *ct, int flags)
89{
90}
91
92static int VBoxVFS_Link(vnode_t *tdvp, vnode_t *vp, char *tnm, struct cred *cr, caller_context_t *ct, int flags)
93{
94}
95
96static int VBoxVFS_Rename(vnode_t *odvp, char *onm, vnode_t *ndvp, char *nnm, struct cred *cr, caller_context_t *ct, int flags)
97{
98}
99
100static int VBoxVFS_Mkdir(vnode_t *dvp, char *nm, struct vattr *va, vnode_t **vpp, struct cred *cr, caller_context_t *ct,
101 int flags, vsecattr_t *vsecp)
102{
103}
104
105static int VBoxVFS_Realvp(vnode_t *vp, vnode_t **vpp, caller_context_t *ct)
106{
107}
108
109static int VBoxVFS_Rmdir(vnode_t *dvp, char *nm, vnode_t *cdir, struct cred *cr, caller_context_t *ct, int flags)
110{
111}
112
113static int VBoxVFS_Symlink(vnode_t *dvp, char *lnm, struct vattr *tva, char *tnm, struct cred *cr,
114 caller_context_t *ct, int flags)
115{
116}
117
118static int VBoxVFS_Readlink(vnode_t *vp, struct uio *uiop, struct cred *cr, caller_context_t *ct)
119{
120}
121
122static int VBoxVFS_Readdir(vnode_t *vp, struct uio *uiop, struct cred *cr, int *eofp, caller_context_t *ct, int flags)
123{
124}
125
126static int VBoxVFS_Rwlock(vnode_t *vp, int write_lock, caller_context_t *ct)
127{
128}
129
130static void VBoxVFS_Rwunlock(vnode_t *vp, int write_lock, caller_context_t *ct)
131{
132}
133
134static int VBoxVFS_Seek(vnode_t *vp, offset_t ooff, offset_t *noffp, caller_context_t *ct)
135{
136}
137
138static int VBoxVFS_Cmp(vnode_t *vp1, vnode_t *vp2, caller_context_t *ct)
139{
140}
141
142static int VBoxVFS_Frlock(vnode_t *vp, int cmd, struct flock64 *bfp, int flag, offset_t offset, struct flk_callback *flk_cbp,
143 cred_t *cr, caller_context_t *ct)
144{
145}
146
147static int VBoxVFS_Space(vnode_t *vp, int cmd, struct flock64 *bfp, int flag, offset_t offset, struct cred *cr,
148 caller_context_t *ct)
149{
150}
151
152static int VBoxVFS_Getpage(vnode_t *vp, offset_t off, size_t len, uint_t *prot, struct page *parr[], size_t psz,
153 struct seg *seg, caddr_t addr, enum seg_rw rw, struct cred *cr, caller_context_t *ct)
154{
155}
156
157static int VBoxVFS_Putpage(vnode_t *vp, offset_t off, size_t len, int flags, struct cred *cr, caller_context_t *ct)
158{
159}
160
161static int VBoxVFS_Map(vnode_t *vp, offset_t off, struct as *as, caddr_t *addrp, size_t len, uchar_t prot,
162 uchar_t maxprot, uint_t flags, struct cred *cr, caller_context_t *ct)
163{
164}
165
166static int VBoxVFS_Addmap(vnode_t *vp, offset_t off, struct as *as, caddr_t addr, size_t len, uchar_t prot,
167 uchar_t maxprot, uint_t flags, struct cred *cr, caller_context_t *ct)
168{
169}
170
171static int VBoxVFS_Delmap(vnode_t *vp, offset_t off, struct as *as, caddr_t addr, size_t len, uint_t prot, uint_t maxprot,
172 uint_t flags, struct cred *cr, caller_context_t *ct)
173{
174}
175
176static int VBoxVFS_Pathconf(vnode_t *vp, int cmd, ulong_t *valp, struct cred *cr, caller_context_t *ct)
177{
178}
179
180static int VBoxVFS_Shrlock(vnode_t *vp, int cmd, struct shrlock *shr, int flag, cred_t *cr, caller_context_t *ct)
181{
182}
183
184/**
185 * VBoxVFS: vnode operations vector.
186 */
187struct vnodeops *g_pVBoxVFS_vnodeops;
188
189const fs_operation_def_t g_VBoxVFS_vnodeops_template[] =
190{
191 VOPNAME_OPEN, { .vop_open = VBoxVFS_Open },
192 VOPNAME_CLOSE, { .vop_close = VBoxVFS_Close },
193 VOPNAME_READ, { .vop_read = VBoxVFS_Read },
194 VOPNAME_WRITE, { .vop_write = VBoxVFS_Write },
195 VOPNAME_IOCTL, { .vop_ioctl = VBoxVFS_IOCtl },
196 VOPNAME_SETFL, { .vop_setfl = VBoxVFS_Setfl },
197 VOPNAME_GETATTR, { .vop_getattr = VBoxVFS_Getattr },
198 VOPNAME_SETATTR, { .vop_setattr = VBoxVFS_Setattr },
199 VOPNAME_ACCESS, { .vop_access = VBoxVFS_Access },
200 VOPNAME_LOOKUP, { .vop_lookup = VBoxVFS_Lookup },
201 VOPNAME_CREATE, { .vop_create = VBoxVFS_Create },
202 VOPNAME_REMOVE, { .vop_remove = VBoxVFS_Remove },
203 VOPNAME_LINK, { .vop_link = VBoxVFS_Link },
204 VOPNAME_RENAME, { .vop_rename = VBoxVFS_Rename },
205 VOPNAME_MKDIR, { .vop_mkdir = VBoxVFS_Mkdir },
206 VOPNAME_RMDIR, { .vop_rmdir = VBoxVFS_Rmdir },
207 VOPNAME_READDIR, { .vop_readdir = VBoxVFS_Readdir },
208 VOPNAME_SYMLINK, { .vop_symlink = VBoxVFS_Symlink },
209 VOPNAME_READLINK, { .vop_readlink = VBoxVFS_Readlink },
210 VOPNAME_FSYNC, { .vop_fsync = VBoxVFS_Fsync },
211 VOPNAME_INACTIVE, { .vop_inactive = VBoxVFS_Inactive },
212 VOPNAME_FID, { .vop_fid = VBoxVFS_Fid },
213 VOPNAME_RWLOCK, { .vop_rwlock = VBoxVFS_Rwlock },
214 VOPNAME_RWUNLOCK, { .vop_rwunlock = VBoxVFS_Rwunlock },
215 VOPNAME_SEEK, { .vop_seek = VBoxVFS_Seek },
216 VOPNAME_CMP, { .vop_cmp = VBoxVFS_Cmp },
217 VOPNAME_FRLOCK, { .vop_frlock = VBoxVFS_Frlock },
218 VOPNAME_SPACE, { .vop_space = VBoxVFS_Space },
219 VOPNAME_REALVP, { .vop_realvp = VBoxVFS_Realvp },
220 VOPNAME_GETPAGE, { .vop_getpage = VBoxVFS_Getpage },
221 VOPNAME_PUTPAGE, { .vop_putpage = VBoxVFS_Putpage },
222 VOPNAME_MAP, { .vop_map = VBoxVFS_Map },
223 VOPNAME_ADDMAP, { .vop_addmap = VBoxVFS_Addmap },
224 VOPNAME_DELMAP, { .vop_delmap = VBoxVFS_Delmap },
225 VOPNAME_PATHCONF, { .vop_pathconf = VBoxVFS_Pathconf },
226 VOPNAME_SHRLOCK, { .vop_shrlock = VBoxVFS_Shrlock },
227 NULL, NULL
228};
229
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette