Home
last modified time | relevance | path

Searched refs:vnode (Results 1 – 25 of 273) sorted by relevance

1234567891011

/illumos-gate/usr/src/uts/common/sys/fs/
H A Dsnode.h67 struct vnode *s_vnode; /* vnode associated with this snode */
71 struct vnode *s_realvp; /* vnode for the fs entry (if any) */
72 struct vnode *s_commonvp; /* common device vnode */
150 offset_t spec_maxoffset(struct vnode *);
152 struct vnode *specvp(struct vnode *, dev_t, vtype_t, struct cred *);
153 struct vnode *makespecvp(dev_t, vtype_t);
154 struct vnode *other_specvp(struct vnode *);
155 struct vnode *common_specvp(struct vnode *);
156 struct vnode *specfind(dev_t, vtype_t);
157 struct vnode *commonvp(dev_t, vtype_t);
[all …]
H A Dufs_filio.h93 extern int ufs_fiosatime(struct vnode *, struct timeval *, int,
95 extern int ufs_fiosdio(struct vnode *, uint_t *, int flag, struct cred *);
96 extern int ufs_fiogdio(struct vnode *, uint_t *, int flag, struct cred *);
97 extern int ufs_fioio(struct vnode *, struct fioio *, int, struct cred *);
98 extern int ufs_fioisbusy(struct vnode *, int *, struct cred *);
99 extern int ufs_fiodirectio(struct vnode *, int, struct cred *);
100 extern int ufs_fiotune(struct vnode *, struct fiotune *, struct cred *);
105 extern int ufs_mark_compressed(struct vnode *vp);
H A Dhsfs_impl.h45 extern int hs_readsector(struct vnode *vp, uint_t secno, uchar_t *ptr);
47 extern struct vnode *hs_makenode(struct hs_direntry *dp,
51 struct vnode **vpp);
53 extern int hs_dirlook(struct vnode *dvp, char *name, int namlen,
54 struct vnode **vpp, struct cred *cred);
56 extern struct vnode *hs_findhash(ino64_t nodeid, uint_t lbn, uint_t off,
69 extern void hs_filldirent(struct vnode *vp, struct hs_direntry *hdp);
71 extern int hs_access(struct vnode *vp, mode_t m, struct cred *cred);
H A Dnamenode.h59 struct vnode *nm_vnode; /* represents mounted file desc. */
62 struct vnode *nm_filevp; /* file desc. prior to mounting */
64 struct vnode *nm_mountpt; /* mount point prior to mounting */
90 extern int nm_unmountall(struct vnode *, struct cred *);
93 extern struct namenode *namefind(struct vnode *, struct vnode *);
H A Dsdev_impl.h156 struct vnode *sdev_vnode; /* vnode */
164 struct vnode *sdev_attrvp; /* backing store vnode if persisted */
233 #define SDEVTOV(n) ((struct vnode *)(n)->sdev_vnode)
240 struct vnode *vp = SDEVTOV(dv); \
266 extern int devname_lookup_func(struct sdev_node *, char *, struct vnode **,
289 extern int devname_setattr_func(struct vnode *, struct vattr *, int,
294 extern void devname_inactive_func(struct vnode *, struct cred *,
295 void (*)(struct vnode *));
457 extern struct sdev_node *sdev_mkroot(struct vfs *, dev_t, struct vnode *,
458 struct vnode *, struct cred *);
[all …]
H A Ddv_node.h64 struct vnode *dv_vnode; /* vnode for this dv_node */
79 struct vnode *dv_attrvp; /* persistent attribute store */
99 #define DVTOV(n) ((struct vnode *)(n)->dv_vnode)
173 extern void dv_shadow_node(struct vnode *, char *nm, struct vnode *,
174 struct pathname *, struct vnode *, struct cred *, int);
175 extern int dv_find(struct dv_node *, char *, struct vnode **,
176 struct pathname *, struct vnode *, struct cred *, uint_t);
/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dsockcommon_vnops.c60 static int socket_vop_open(struct vnode **, int, struct cred *,
62 static int socket_vop_close(struct vnode *, int, int, offset_t,
64 static int socket_vop_read(struct vnode *, struct uio *, int,
66 static int socket_vop_write(struct vnode *, struct uio *, int,
68 static int socket_vop_ioctl(struct vnode *, int, intptr_t, int,
70 static int socket_vop_setfl(struct vnode *, int, int, cred_t *,
72 static int socket_vop_getattr(struct vnode *, struct vattr *, int,
74 static int socket_vop_setattr(struct vnode *, struct vattr *, int,
76 static int socket_vop_access(struct vnode *, int, int, struct cred *,
78 static int socket_vop_fsync(struct vnode *, int, struct cred *,
[all …]
/illumos-gate/usr/src/uts/common/fs/dcfs/
H A Ddc_vnops.c146 static struct dcnode *dcfind(struct vnode *);
192 static int dc_open(struct vnode **, int, struct cred *, caller_context_t *);
193 static int dc_close(struct vnode *, int, int, offset_t,
195 static int dc_read(struct vnode *, struct uio *, int, struct cred *,
197 static int dc_getattr(struct vnode *, struct vattr *, int,
199 static int dc_setattr(struct vnode *, struct vattr *, int, struct cred *,
201 static int dc_access(struct vnode *, int, int,
203 static int dc_fsync(struct vnode *, int, struct cred *, caller_context_t *);
204 static void dc_inactive(struct vnode *, struct cred *, caller_context_t *);
205 static int dc_fid(struct vnode *, struct fid *, caller_context_t *);
[all …]
/illumos-gate/usr/src/uts/common/fs/
H A Dfs_subr.h57 extern int fs_nosys_map(struct vnode *, offset_t, struct as *, caddr_t *,
60 extern int fs_nosys_addmap(struct vnode *, offset_t, struct as *, caddr_t,
63 extern int fs_nosys_poll(struct vnode *, short, int, short *,
79 extern int fs_pathconf(struct vnode *, int, ulong_t *, struct cred *,
82 extern void fs_dispose(struct vnode *, page_t *, int, int, struct cred *,
84 extern void fs_nodispose(struct vnode *, page_t *, int, int, struct cred *,
86 extern int fs_fab_acl(struct vnode *, vsecattr_t *, int flag, cred_t *,
88 extern int fs_shrlock(struct vnode *, int, struct shrlock *, int,
94 extern int fs_acl_nontrivial(struct vnode *vp, struct cred *cr);
/illumos-gate/usr/src/uts/common/sys/
H A Dflock.h220 struct vnode *ll_vp;
232 int reclock(struct vnode *, struct flock64 *, int, int, u_offset_t,
234 int chklock(struct vnode *, int, u_offset_t, ssize_t, int,
236 int convoff(struct vnode *, struct flock64 *, int, offset_t);
237 void cleanlocks(struct vnode *, pid_t, int);
240 locklist_t *flk_active_locks_for_vp(const struct vnode *vp);
241 locklist_t *flk_active_nbmand_locks_for_vp(const struct vnode *vp);
244 int flk_convert_lock_data(struct vnode *, struct flock64 *,
247 int flk_has_remote_locks(struct vnode *vp);
268 int cl_flk_has_remote_locks_for_nlmid(struct vnode *vp, int nlmid);
H A Dfile.h65 struct vnode *f_vnode; /* pointer to vnode structure */
212 extern int falloc(struct vnode *, int, file_t **, int *);
222 extern int fassign(struct vnode **, int, int *);
228 extern int fgetstartvp(int, char *, struct vnode **);
230 extern int fisopen(struct vnode *);
233 extern int sock_getfasync(struct vnode *);
237 extern void checkwfdlist(struct vnode *, fpollinfo_t *);
H A Dswap.h137 struct vnode *si_vp; /* vnode (commonvp if device) */
213 extern struct anon *swap_anon(struct vnode *vp, u_offset_t off);
214 extern int swap_phys_alloc(struct vnode **vpp, u_offset_t *offp, size_t *lenp,
216 extern void swap_phys_free(struct vnode *vp, u_offset_t off, size_t len);
217 extern int swap_getphysname(struct vnode *vp, u_offset_t off,
218 struct vnode **pvpp, u_offset_t *poffp);
219 extern int swap_newphysname(struct vnode *vp, u_offset_t offset,
220 u_offset_t *offp, size_t *lenp, struct vnode **pvpp, u_offset_t *poffp);
H A Dconsdev.h53 extern struct vnode *rconsvp; /* pointer to vnode for that device */
58 extern struct vnode *vsconsvp; /* pointer to vnode for virtual console */
69 extern struct vnode *fbvp; /* pointer to vnode for that device */
89 extern struct vnode *wsconsvp; /* vnode for redirecting ws cons access */
90 extern struct vnode *rwsconsvp; /* vnode for underlying workstation console */
H A Dshare.h69 extern int add_share(struct vnode *, struct shrlock *);
70 extern int del_share(struct vnode *, struct shrlock *);
71 extern void cleanshares(struct vnode *, pid_t);
72 extern void cleanshares_by_sysid(struct vnode *, int32_t);
/illumos-gate/usr/src/uts/common/fs/specfs/
H A Dspecvnops.c99 static int spec_open(struct vnode **, int, struct cred *, caller_context_t *);
100 static int spec_close(struct vnode *, int, int, offset_t, struct cred *,
102 static int spec_read(struct vnode *, struct uio *, int, struct cred *,
104 static int spec_write(struct vnode *, struct uio *, int, struct cred *,
106 static int spec_ioctl(struct vnode *, int, intptr_t, int, struct cred *, int *,
108 static int spec_getattr(struct vnode *, struct vattr *, int, struct cred *,
110 static int spec_setattr(struct vnode *, struct vattr *, int, struct cred *,
112 static int spec_access(struct vnode *, int, int, struct cred *,
114 static int spec_create(struct vnode *, char *, vattr_t *, enum vcexcl, int,
115 struct vnode **, struct cred *, int, caller_context_t *, vsecattr_t *);
[all …]
H A Dspecsubr.c77 static struct snode *sfind(dev_t, vtype_t, struct vnode *);
78 static struct vnode *get_cvp(dev_t, vtype_t, struct snode *, int *);
81 struct vnode *
83 struct vnode *realvp, in specvp_devfs()
89 struct vnode *vp; in specvp_devfs()
112 struct vnode *
114 struct vnode *vp, in specvp()
122 struct vnode *svp; in specvp()
151 struct vnode *cvp; in specvp()
223 struct vnode *
[all …]
/illumos-gate/usr/src/uts/common/fs/pcfs/
H A Dpc_vnops.c79 static int pcfs_open(struct vnode **, int, struct cred *, caller_context_t *ct);
80 static int pcfs_close(struct vnode *, int, int, offset_t, struct cred *,
82 static int pcfs_read(struct vnode *, struct uio *, int, struct cred *,
84 static int pcfs_write(struct vnode *, struct uio *, int, struct cred *,
86 static int pcfs_getattr(struct vnode *, struct vattr *, int, struct cred *,
88 static int pcfs_setattr(struct vnode *, struct vattr *, int, struct cred *,
90 static int pcfs_access(struct vnode *, int, int, struct cred *,
92 static int pcfs_lookup(struct vnode *, char *, struct vnode **,
93 struct pathname *, int, struct vnode *, struct cred *,
95 static int pcfs_create(struct vnode *, char *, struct vattr *,
[all …]
/illumos-gate/usr/src/uts/common/fs/dev/
H A Dsdev_vnops.c319 sdev_open(struct vnode **vpp, int flag, struct cred *cred, caller_context_t *ct) in sdev_open()
350 sdev_close(struct vnode *vp, int flag, int count, in sdev_close()
374 sdev_read(struct vnode *vp, struct uio *uio, int ioflag, struct cred *cred, in sdev_read()
401 sdev_write(struct vnode *vp, struct uio *uio, int ioflag, struct cred *cred, in sdev_write()
432 sdev_ioctl(struct vnode *vp, int cmd, intptr_t arg, int flag, in sdev_ioctl()
449 sdev_getattr(struct vnode *vp, struct vattr *vap, int flags, in sdev_getattr()
482 sdev_setattr(struct vnode *vp, struct vattr *vap, int flags, in sdev_setattr()
489 sdev_getsecattr(struct vnode *vp, struct vsecattr *vsap, int flags, in sdev_getsecattr()
494 struct vnode *avp = dv->sdev_attrvp; in sdev_getsecattr()
514 sdev_setsecattr(struct vnode *vp, struct vsecattr *vsap, int flags, in sdev_setsecattr()
[all …]
H A Dsdev_ptsops.c219 struct vnode *vp; in devpts_prunedir()
287 devpts_lookup(struct vnode *dvp, char *nm, struct vnode **vpp, in devpts_lookup()
288 struct pathname *pnp, int flags, struct vnode *rdir, struct cred *cred, in devpts_lookup()
293 struct vnode *rvp = NULL; in devpts_lookup()
326 devpts_create(struct vnode *dvp, char *nm, struct vattr *vap, vcexcl_t excl, in devpts_create()
327 int mode, struct vnode **vpp, struct cred *cred, int flag, in devpts_create()
331 struct vnode *vp; in devpts_create()
362 devpts_readdir(struct vnode *dvp, struct uio *uiop, struct cred *cred, in devpts_readdir()
385 devpts_setattr(struct vnode *vp, struct vattr *vap, int flags, in devpts_setattr()
/illumos-gate/usr/src/uts/common/fs/udfs/
H A Dudf_vnops.c88 static int32_t udf_open(struct vnode **,
90 static int32_t udf_close(struct vnode *,
92 static int32_t udf_read(struct vnode *,
94 static int32_t udf_write(struct vnode *,
96 static int32_t udf_ioctl(struct vnode *,
99 static int32_t udf_getattr(struct vnode *,
101 static int32_t udf_setattr(struct vnode *,
103 static int32_t udf_access(struct vnode *,
105 static int32_t udf_lookup(struct vnode *,
106 char *, struct vnode **, struct pathname *,
[all …]
/illumos-gate/usr/src/uts/common/fs/doorfs/
H A Ddoor_vnops.c42 static int door_open(struct vnode **vpp, int flag, struct cred *cr,
44 static int door_close(struct vnode *vp, int flag, int count,
46 static int door_getattr(struct vnode *vp, struct vattr *vap,
48 static void door_inactive(struct vnode *vp, struct cred *cr,
50 static int door_access(struct vnode *vp, int mode, int flags,
76 door_open(struct vnode **vpp, int flag, struct cred *cr, caller_context_t *ct) in door_open()
104 door_close(struct vnode *vp, int flag, int count, offset_t offset, in door_close()
143 door_getattr(struct vnode *vp, struct vattr *vap, int flags, struct cred *cr, in door_getattr()
171 door_inactive(struct vnode *vp, struct cred *cr, caller_context_t *ct) in door_inactive()
238 door_access(struct vnode *vp, int mode, int flags, struct cred *cr, in door_access()
/illumos-gate/usr/src/uts/common/klm/
H A Dklmops.c80 lm_frlock(struct vnode *vp, int cmd, struct flock64 *flk, int flags, in lm_frlock()
93 lm4_frlock(struct vnode *vp, int cmd, struct flock64 *flk, int flags, in lm4_frlock()
108 lm_shrlock(struct vnode *vp, int cmd, in lm_shrlock()
119 lm4_shrlock(struct vnode *vp, int cmd, in lm4_shrlock()
129 lm_register_lock_locally(struct vnode *vp, struct lm_sysid *ls, in lm_register_lock_locally()
159 lm_nlm_reclaim(struct vnode *vp, struct flock64 *flkp) in lm_nlm_reclaim()
165 lm_nlm4_reclaim(struct vnode *vp, struct flock64 *flkp) in lm_nlm4_reclaim()
/illumos-gate/usr/src/uts/common/nfs/
H A Dlm.h107 extern int lm_frlock(struct vnode *vp, int cmd,
111 extern int lm_has_sleep(const struct vnode *);
118 extern int lm_shrlock(struct vnode *vp, int cmd,
120 extern int lm4_frlock(struct vnode *vp, int cmd,
124 extern int lm4_shrlock(struct vnode *vp, int cmd,
156 extern int lm_vp_active(const struct vnode *);
/illumos-gate/usr/src/uts/common/fs/tmpfs/
H A Dtmp_vnops.c75 static int tmp_getapage(struct vnode *, u_offset_t, size_t, uint_t *,
77 static int tmp_putapage(struct vnode *, page_t *, u_offset_t *, size_t *,
82 tmp_open(struct vnode **vpp, int flag, struct cred *cred, caller_context_t *ct) in tmp_open()
96 struct vnode *vp, in tmp_close()
124 struct vnode *vp; in wrtmp()
459 struct vnode *vp; in rdtmp()
582 tmp_read(struct vnode *vp, struct uio *uiop, int ioflag, cred_t *cred, in tmp_read()
611 tmp_write(struct vnode *vp, struct uio *uiop, int ioflag, struct cred *cred, in tmp_write()
648 struct vnode *vp, in tmp_ioctl()
662 struct vnode *vp, in tmp_getattr()
[all …]
/illumos-gate/usr/src/uts/common/fs/devfs/
H A Ddevfs_vnops.c74 devfs_open(struct vnode **vpp, int flag, struct cred *cred, in devfs_open()
90 devfs_close(struct vnode *vp, int flag, int count, in devfs_close()
109 devfs_read(struct vnode *vp, struct uio *uiop, int ioflag, struct cred *cred, in devfs_read()
124 devfs_write(struct vnode *vp, struct uio *uiop, int ioflag, struct cred *cred, in devfs_write()
139 devfs_ioctl(struct vnode *vp, int cmd, intptr_t arg, int flag, in devfs_ioctl()
162 devfs_getattr(struct vnode *vp, struct vattr *vap, int flags, struct cred *cr, in devfs_getattr()
221 struct vnode *vp, in devfs_setattr_dir()
340 struct vnode *vp, in devfs_setattr()
348 struct vnode *dvp; in devfs_setattr()
614 devfs_getsecattr(struct vnode *vp, struct vsecattr *vsap, int flags, in devfs_getsecattr()
[all …]

1234567891011