Searched refs:vp (Results 176 - 200 of 444) sorted by relevance

1234567891011>>

/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dzfs_vnops.c218 zfs_close(vnode_t *vp, int flag, int count, offset_t offset, cred_t *cr, argument
221 znode_t *zp = VTOZ(vp);
225 * Clean up any locks held by this process on the vp.
227 cleanlocks(vp, ddi_get_pid(), 0);
228 cleanshares(vp, ddi_get_pid());
240 VERIFY(fs_vscan(vp, cr, 1) == 0);
251 zfs_holey(vnode_t *vp, u_long cmd, offset_t *off) argument
253 znode_t *zp = VTOZ(vp);
294 zfs_ioctl(vnode_t *vp, u_long com, intptr_t data, int flag, cred_t *cred, argument
329 zp = VTOZ(vp);
393 page_busy(vnode_t *vp, int64_t start, int64_t off, int64_t nbytes) argument
458 page_hold(vnode_t *vp, int64_t start) argument
512 update_pages(vnode_t *vp, int64_t start, int len, objset_t *os, uint64_t oid, int segflg, dmu_tx_t *tx) argument
559 mappedread_sf(vnode_t *vp, int nbytes, uio_t *uio) argument
629 mappedread(vnode_t *vp, int nbytes, uio_t *uio) argument
700 zfs_read(vnode_t *vp, uio_t *uio, int ioflag, cred_t *cr, caller_context_t *ct) argument
852 zfs_write(vnode_t *vp, uio_t *uio, int ioflag, cred_t *cr, caller_context_t *ct) argument
1410 zfs_access(vnode_t *vp, int mode, int flag, cred_t *cr, caller_context_t *ct) argument
1442 zfs_lookup_lock(vnode_t *dvp, vnode_t *vp, const char *name, int lkflags) argument
1934 zfs_remove(vnode_t *dvp, vnode_t *vp, char *name, cred_t *cr) argument
2232 zfs_rmdir(vnode_t *dvp, vnode_t *vp, char *name, cred_t *cr) argument
2319 zfs_readdir(vnode_t *vp, uio_t *uio, cred_t *cr, int *eofp, int *ncookies, u_long **cookies) argument
2624 zfs_fsync(vnode_t *vp, int syncflag, cred_t *cr, caller_context_t *ct) argument
2658 zfs_getattr(vnode_t *vp, vattr_t *vap, int flags, cred_t *cr, caller_context_t *ct) argument
2872 zfs_setattr(vnode_t *vp, vattr_t *vap, int flags, cred_t *cr, caller_context_t *ct) argument
4145 zfs_readlink(vnode_t *vp, uio_t *uio, cred_t *cr, caller_context_t *ct) argument
4303 zfs_inactive(vnode_t *vp, cred_t *cr, caller_context_t *ct) argument
4353 zfs_fid(vnode_t *vp, fid_t *fidp, caller_context_t *ct) argument
4418 zfs_pathconf(vnode_t *vp, int cmd, ulong_t *valp, cred_t *cr, caller_context_t *ct) argument
4499 zfs_getsecattr(vnode_t *vp, vsecattr_t *vsecp, int flag, cred_t *cr, caller_context_t *ct) argument
4517 zfs_setsecattr(vnode_t *vp, vsecattr_t *vsecp, int flag, cred_t *cr, caller_context_t *ct) argument
4539 zfs_getpages(struct vnode *vp, vm_page_t *ma, int count, int *rbehind, int *rahead) argument
4636 zfs_putpages(struct vnode *vp, vm_page_t *ma, size_t len, int flags, int *rtvals) argument
4824 vnode_t *vp = ap->a_vp; local
4915 vnode_t *vp = ap->a_vp; local
5170 vnode_t *vp = ap->a_vp; local
5354 vnode_t *vp = ap->a_vp; local
5372 vnode_t *vp = ap->a_vp; local
5385 vnode_t *vp = ap->a_vp; local
5531 vnode_t *xvp = NULL, *vp; local
5600 vnode_t *xvp = NULL, *vp; local
5668 vnode_t *xvp = NULL, *vp; local
5741 vnode_t *xvp = NULL, *vp; local
5933 vnode_t *vp = ap->a_vp;; local
5993 vnode_t *vp; local
[all...]
H A Dzfs_replay.c275 vnode_t *vp = NULL; local
361 0, 0, &vp, kcred, vflg, NULL, &vsec);
395 &vp, kcred, NULL, vflg, &vsec);
405 if (error == 0 && vp != NULL)
406 VN_RELE(vp);
425 vnode_t *vp = NULL; local
505 error = VOP_CREATE(ZTOV(dzp), &vp, &cn, &xva.xva_vattr /*,vflg*/);
523 error = VOP_MKDIR(ZTOV(dzp), &vp, &cn, &xva.xva_vattr /*,vflg*/);
526 error = zfs_make_xattrdir(dzp, &xva.xva_vattr, &vp, kcred);
532 error = VOP_SYMLINK(ZTOV(dzp), &vp,
559 vnode_t *vp; local
875 vnode_t *vp; local
935 vnode_t *vp; local
986 vnode_t *vp; local
[all...]
/freebsd-11-stable/sys/security/mac/
H A Dmac_policy.h185 struct vnode *vp, struct label *vplabel);
188 struct label *delabel, struct vnode *vp,
258 typedef int (*mpo_kld_check_load_t)(struct ucred *cred, struct vnode *vp,
468 struct vnode *vp, struct label *vplabel);
472 struct vnode *vp, struct label *vplabel);
476 struct vnode *vp, struct label *vplabel);
478 struct vnode *vp, struct label *vplabel);
547 struct label *mplabel, struct vnode *vp,
550 struct label *mplabel, struct vnode *vp,
553 struct vnode *vp, struc
[all...]
/freebsd-11-stable/contrib/apr-util/test/
H A Dtestreslist.c109 void *vp; local
122 rv = apr_reslist_acquire(rl, &vp);
124 res = vp;
145 void *vp; local
162 rv = apr_reslist_acquire(rl, &vp);
179 void *vp; local
196 rv = apr_reslist_acquire(rl, &vp);
198 res = vp;
/freebsd-11-stable/contrib/ntp/sntp/tests/
H A DfileHandlingTest.c39 void *vp; member in union:__anon4981
43 free(any.vp);
/freebsd-11-stable/usr.bin/rpcgen/
H A Drpc_clntout.c81 version_list *vp; local
84 for (vp = def->def.pr.versions; vp != NULL; vp = vp->next) {
85 for (proc = vp->procs; proc != NULL; proc = proc->next) {
90 pvname(proc->proc_name, vp->vers_num);
94 pvname(proc->proc_name, vp->vers_num);
/freebsd-11-stable/sys/fs/cd9660/
H A Dcd9660_node.c67 struct vnode *vp = ap->a_vp; local
68 struct iso_node *ip = VTOI(vp);
76 vrecycle(vp);
90 struct vnode *vp = ap->a_vp; local
95 vnode_destroy_vobject(vp);
99 vfs_hash_remove(vp);
104 free(vp->v_data, M_ISOFSNODE);
105 vp->v_data = NULL;
/freebsd-11-stable/sys/sys/
H A Dlockf.h127 void lf_purgelocks(struct vnode *vp, struct lockf **statep);
129 int lf_iteratelocks_vnode(struct vnode *vp, lf_iterator *, void *);
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_mmap.c103 testloan(void *vp, void *vp2, char pat, int docheck) argument
115 (void)memcpy(backup, vp, BUFSIZE);
133 nwritten = write(fds[0], (char *)vp + page, BUFSIZE - page);
248 char *vp, *vp2; local
257 vp = mmap(NULL, BUFSIZE, PROT_READ | PROT_WRITE,
260 ATF_REQUIRE(vp != MAP_FAILED);
262 vp2 = vp;
264 testloan(vp, vp2, 'A', 0);
265 testloan(vp, vp2, 'B', 1);
267 ATF_REQUIRE(munmap(vp, BUFSIZ
[all...]
/freebsd-11-stable/sys/kern/
H A Dkern_ktrace.c152 struct vnode **vp);
423 ktr_freeproc(struct proc *p, struct ucred **uc, struct vnode **vp) argument
431 if (vp != NULL)
432 *vp = p->p_tracevp;
492 ktrprocexec(struct proc *p, struct ucred **uc, struct vnode **vp) argument
497 ktr_freeproc(p, uc, vp);
511 struct vnode *vp; local
526 ktr_freeproc(p, &cred, &vp);
529 if (vp != NULL)
530 vrele(vp);
887 struct vnode *vp = NULL; local
1061 ktrops(struct thread *td, struct proc *p, int ops, int facs, struct vnode *vp) argument
1112 ktrsetchildren(struct thread *td, struct proc *top, int ops, int facs, struct vnode *vp) argument
1148 struct vnode *vp; local
[all...]
H A Dkern_lockf.c416 struct vnode *vp = ap->a_vp; local
480 VI_LOCK(vp);
484 VI_UNLOCK(vp);
488 VI_UNLOCK(vp);
557 lock->lf_vnode = vp;
564 vref(vp);
586 VI_LOCK(vp);
587 if (vp->v_iflag & VI_DOOMED) {
588 VI_UNLOCK(vp);
600 VI_UNLOCK(vp);
778 lf_purgelocks(struct vnode *vp, struct lockf **statep) argument
1379 lf_setlock(struct lockf *state, struct lockf_entry *lock, struct vnode *vp, void **cookiep) argument
1868 struct vnode *vp; member in struct:lockdesc
1936 lf_iteratelocks_vnode(struct vnode *vp, lf_iterator *fn, void *arg) argument
2004 lf_clearremotesys_iterator(struct vnode *vp, struct flock *fl, void *arg) argument
[all...]
/freebsd-11-stable/sys/fs/ext2fs/
H A Dext2_vfsops.c482 struct vnode *vp, *mvp, *devvp; local
540 MNT_VNODE_FOREACH_ALL(vp, mp, mvp) {
544 if (vget(vp, LK_EXCLUSIVE | LK_INTERLOCK, td)) {
548 if (vinvalbuf(vp, 0, 0, 0))
554 ip = VTOI(vp);
558 VOP_UNLOCK(vp, 0);
559 vrele(vp);
566 VOP_UNLOCK(vp, 0);
567 vrele(vp);
864 struct vnode *mvp, *vp; local
944 struct vnode *vp; local
[all...]
H A Dext2_bmap.c93 ext4_bmapext(struct vnode *vp, int32_t bn, int64_t *bnp, int *runp, int *runb) argument
102 ip = VTOI(vp);
160 ext2_bmaparray(struct vnode *vp, daddr_t bn, daddr_t *bnp, int *runp, int *runb) argument
173 ip = VTOI(vp);
174 mp = vp->v_mount;
189 error = ext2_getlbns(vp, bn, ap, nump);
226 if ((daddr == 0 && !incore(&vp->v_bufobj, metalbn)) || metalbn == bn)
235 bp = getblk(vp, metalbn, bsize, 0, 0, 0);
312 ext2_getlbns(struct vnode *vp, daddr_t bn, struct indir *ap, int *nump) argument
320 ump = VFSTOEXT2(vp
[all...]
/freebsd-11-stable/sys/ufs/ufs/
H A Dufs_bmap.c106 ufs_bmaparray(vp, bn, bnp, nbp, runp, runb)
107 struct vnode *vp;
125 ip = VTOI(vp);
126 mp = vp->v_mount;
141 error = ufs_getlbns(vp, bn, ap, nump);
205 if ((daddr == 0 && !incore(&vp->v_bufobj, metalbn)) || metalbn == bn)
214 bp = getblk(vp, metalbn, mp->mnt_stat.f_iosize, 0, 0, 0);
314 ufs_getlbns(vp, bn, ap, nump)
315 struct vnode *vp;
325 ump = VFSTOUFS(vp
[all...]
H A Dufs_dirhash.c66 #define OFSFMT(vp) ((vp)->v_mount->mnt_maxsymlinklen <= 0)
192 struct vnode *vp; local
196 vp = ip->i_vnode;
222 VI_LOCK(vp);
226 VI_UNLOCK(vp);
232 VI_UNLOCK(vp);
241 VI_LOCK(vp);
243 VI_UNLOCK(vp);
248 VI_UNLOCK(vp);
302 struct vnode *vp; local
348 struct vnode *vp; local
484 struct vnode *vp; local
554 struct vnode *vp; local
[all...]
/freebsd-11-stable/sys/fs/nfsclient/
H A Dnfs_clport.c104 newnfs_vncmpf(struct vnode *vp, void *arg) argument
107 struct nfsnode *np = VTONFS(vp);
129 struct vnode *vp, *nvp; local
221 vp = nvp;
222 KASSERT(vp->v_bufobj.bo_bsize != 0, ("nfscl_nget: bo_bsize == 0"));
223 vp->v_bufobj.bo_ops = &buf_ops_newnfs;
224 vp->v_data = np;
225 np->n_vnode = vp;
242 if (vp->v_type == VNON)
243 vp
409 struct vnode *vp = *vpp; local
724 nfscl_wcc_data(struct nfsrv_descript *nd, struct vnode *vp, struct nfsvattr *nap, int *flagp, int *wccflagp, void *stuff) argument
825 nfscl_fillsattr(struct nfsrv_descript *nd, struct vattr *vap, struct vnode *vp, int flags, u_int32_t rdev) argument
942 nfscl_request(struct nfsrv_descript *nd, struct vnode *vp, NFSPROC_T *p, struct ucred *cred, void *stuff) argument
[all...]
/freebsd-11-stable/sys/fs/msdosfs/
H A Dmsdosfs_vnops.c211 struct vnode *vp = ap->a_vp; local
212 struct denode *dep = VTODE(vp);
215 VI_LOCK(vp);
216 if (vp->v_usecount > 1) {
220 VI_UNLOCK(vp);
227 struct vnode *vp = ap->a_vp; local
234 file_mode &= (vp->v_type == VDIR ? pmp->pm_dirmask : pmp->pm_mask);
241 switch (vp->v_type) {
244 if (vp->v_mount->mnt_flag & MNT_RDONLY)
252 return (vaccess(vp
333 struct vnode *vp = ap->a_vp; local
532 struct vnode *vp = ap->a_vp; local
626 struct vnode *vp = ap->a_vp; local
1408 struct vnode *vp = ap->a_vp; local
1761 struct vnode *vp; local
1815 msdosfs_gbp_getblkno(struct vnode *vp, vm_ooffset_t off) argument
1822 msdosfs_gbp_getblksz(struct vnode *vp, daddr_t lbn) argument
[all...]
/freebsd-11-stable/release/picobsd/tinyware/msh/
H A Dsh4.c82 register struct var *vp; local
85 for (vp = vlist; vp; vp = vp->next)
86 if (vp->status & EXPORT)
87 wb = addword(vp->name, wb);
255 struct var *vp; local
308 vp = lookup(s);
309 if ((dolp = vp
[all...]
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/sys/
H A Dvnode.h45 #define IS_DEVVP(vp) \
46 ((vp)->v_type == VCHR || (vp)->v_type == VBLK || (vp)->v_type == VFIFO)
380 #define LOOKUP_DIR 0x01 /* want parent dir vp */
396 void vn_rele_async(struct vnode *vp, struct taskq *taskq);
406 #define VN_RELE_ASYNC(vp, taskq) { \
407 vn_rele_async(vp, taskq); \
417 #define ATTR_COMM 0x04 /* yield common vp attributes */
419 #define ATTR_REAL 0x10 /* yield attributes of the real vp */
[all...]
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libzpool/common/
H A Dkernel.c427 * starting vp is always rootdir (which is true for spa_directory.c, the only
438 vnode_t *vp; local
507 *vpp = vp = umem_zalloc(sizeof (vnode_t), UMEM_NOFAIL);
509 vp->v_fd = fd;
510 vp->v_size = st.st_size;
511 vp->v_path = spa_strdup(path);
512 vp->v_dump_fd = dump_fd;
538 vn_rdwr(int uio, vnode_t *vp, void *addr, ssize_t len, offset_t offset, argument
544 iolen = pread64(vp->v_fd, addr, len, offset);
545 if (vp
573 vn_close(vnode_t *vp, int openflag, cred_t *cr, kthread_t *td) argument
587 fop_getattr(vnode_t *vp, vattr_t *vap) argument
786 vnode_t *vp; local
820 vnode_t *vp = (vnode_t *)file->_fd; local
[all...]
/freebsd-11-stable/sys/fs/fuse/
H A Dfuse_internal.c106 fuse_internal_access(struct vnode *vp, argument
130 mp = vnode_mount(vp);
131 vtype = vnode_vtype(vp);
140 if (vnode_isvroot(vp) && !(facp->facc_flags & FACCESS_NOCHECKSPY)) {
189 fdisp_make_vp(&fdi, FUSE_ACCESS, vp, td, cred);
219 fuse_internal_fsync(struct vnode *vp, argument
230 if (vnode_isdir(vp)) {
234 fdisp_make_vp(&fdi, op, vp, td, cred);
252 fuse_internal_readdir(struct vnode *vp, argument
274 fdisp_make_vp(&fdi, FUSE_READDIR, vp, NUL
376 fuse_internal_remove(struct vnode *dvp, struct vnode *vp, struct componentname *cnp, enum fuse_opcode op) argument
558 fuse_internal_vnode_disappear(struct vnode *vp) argument
[all...]
/freebsd-11-stable/sys/fs/nfsserver/
H A Dnfs_nfsdstate.c104 static int nfsrv_freeopen(struct nfsstate *stp, vnode_t vp, int cansleep,
106 static void nfsrv_freelockowner(struct nfsstate *stp, vnode_t vp, int cansleep,
108 static void nfsrv_freeallnfslocks(struct nfsstate *stp, vnode_t vp,
117 static int nfsrv_getlockfh(vnode_t vp, u_short flags,
141 vnode *vp, NFSPROC_T *p);
143 NFSPROC_T *p, vnode_t vp);
144 static int nfsrv_cleandeleg(vnode_t vp, struct nfslockfile *lfp,
153 static int nfsrv_locallock(vnode_t vp, struct nfslockfile *lfp, int flags,
155 static void nfsrv_localunlock(vnode_t vp, struct nfslockfile *lfp,
157 static int nfsrv_dolocal(vnode_t vp, struc
968 nfsrv_dumplocks(vnode_t vp, struct nfsd_dumplocks *ldumpp, int maxcnt, NFSPROC_T *p) argument
1385 nfsrv_freeopen(struct nfsstate *stp, vnode_t vp, int cansleep, NFSPROC_T *p) argument
1433 nfsrv_freelockowner(struct nfsstate *stp, vnode_t vp, int cansleep, NFSPROC_T *p) argument
1451 nfsrv_freeallnfslocks(struct nfsstate *stp, vnode_t vp, int cansleep, NFSPROC_T *p) argument
1601 nfsrv_lockctrl(vnode_t vp, struct nfsstate **new_stpp, struct nfslock **new_lopp, struct nfslockconflict *cfp, nfsquad_t clientid, nfsv4stateid_t *stateidp, __unused struct nfsexstuff *exp, struct nfsrv_descript *nd, NFSPROC_T *p) argument
2330 nfsrv_opencheck(nfsquad_t clientid, nfsv4stateid_t *stateidp, struct nfsstate *new_stp, vnode_t vp, struct nfsrv_descript *nd, NFSPROC_T *p, int repstat) argument
2581 nfsrv_openctrl(struct nfsrv_descript *nd, vnode_t vp, struct nfsstate **new_stpp, nfsquad_t clientid, nfsv4stateid_t *stateidp, nfsv4stateid_t *delegstateidp, u_int32_t *rflagsp, struct nfsexstuff *exp, NFSPROC_T *p, u_quad_t filerev) argument
3347 nfsrv_openupdate(vnode_t vp, struct nfsstate *new_stp, nfsquad_t clientid, nfsv4stateid_t *stateidp, struct nfsrv_descript *nd, NFSPROC_T *p) argument
3505 nfsrv_delegupdate(struct nfsrv_descript *nd, nfsquad_t clientid, nfsv4stateid_t *stateidp, vnode_t vp, int op, struct ucred *cred, NFSPROC_T *p) argument
3648 nfsrv_getlockfh(vnode_t vp, u_short flags, struct nfslockfile *new_lfp, fhandle_t *nfhp, NFSPROC_T *p) argument
4828 vnode_t vp; local
5024 nfsrv_clientconflict(struct nfsclient *clp, int *haslockp, vnode_t vp, NFSPROC_T *p) argument
5091 nfsrv_delegconflict(struct nfsstate *stp, int *haslockp, NFSPROC_T *p, vnode_t vp) argument
5273 nfsrv_checkremove(vnode_t vp, int remove, NFSPROC_T *p) argument
5359 nfsrv_cleandeleg(vnode_t vp, struct nfslockfile *lfp, struct nfsclient *clp, int *haslockp, NFSPROC_T *p) argument
5412 nfsd_recalldelegation(vnode_t vp, NFSPROC_T *p) argument
5458 nfsd_disabledelegation(vnode_t vp, NFSPROC_T *p) argument
5488 nfsrv_checksetattr(vnode_t vp, struct nfsrv_descript *nd, nfsv4stateid_t *stateidp, struct nfsvattr *nvap, nfsattrbit_t *attrbitp, struct nfsexstuff *exp, NFSPROC_T *p) argument
5535 nfsrv_checkgetattr(struct nfsrv_descript *nd, vnode_t vp, struct nfsvattr *nvap, nfsattrbit_t *attrbitp, struct ucred *cred, NFSPROC_T *p) argument
5765 nfsrv_locallock(vnode_t vp, struct nfslockfile *lfp, int flags, uint64_t first, uint64_t end, struct nfslockconflict *cfp, NFSPROC_T *p) argument
5835 nfsrv_localunlock(vnode_t vp, struct nfslockfile *lfp, uint64_t init_first, uint64_t init_end, NFSPROC_T *p) argument
5900 nfsrv_dolocal(vnode_t vp, struct nfslockfile *lfp, int flags, int oldflags, uint64_t first, uint64_t end, struct nfslockconflict *cfp, NFSPROC_T *p) argument
5951 nfsrv_locallock_rollback(vnode_t vp, struct nfslockfile *lfp, NFSPROC_T *p) argument
[all...]
/freebsd-11-stable/contrib/nvi/vi/
H A Dv_screen.c34 v_screen(SCR *sp, VICMD *vp) argument
/freebsd-11-stable/sys/compat/svr4/
H A Dsvr4_fcntl.c259 struct vnode *vp; local
277 if ((error = fgetvp(td, fd, &rights, &vp)) != 0)
280 if (vp->v_type != VCHR && vp->v_type != VBLK) {
286 vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
287 error = mac_vnode_check_revoke(td->td_ucred, vp);
288 VOP_UNLOCK(vp, 0);
293 if ((error = VOP_GETATTR(vp, &vattr, td->td_ucred)) != 0)
300 if ((error = vn_start_write(vp, &mp, V_WAIT | PCATCH)) != 0)
302 if (vcount(vp) >
319 struct vnode *vp; local
[all...]
/freebsd-11-stable/sys/fs/fdescfs/
H A Dfdesc_vfsops.c162 struct vnode *vp; local
167 vp = VFSTOFDESC(mp)->f_root;
168 vget(vp, LK_EXCLUSIVE | LK_RETRY, curthread);
169 *vpp = vp;

Completed in 214 milliseconds

1234567891011>>