Searched refs:vp (Results 1 - 25 of 147) sorted by relevance

123456

/macosx-10.5.8/xnu-1228.15.4/security/
H A Dmac_vfs_subr.c46 vnode_label(struct mount *mp, struct vnode *dvp, struct vnode *vp, argument
53 vnode_lock(vp);
55 if (vp->v_lflag & VL_LABELED) {
57 vnode_put_locked(vp);
58 vnode_unlock(vp);
62 if ((flags & VNODE_LABEL_NEEDREF) && vnode_get_locked(vp)) {
63 vnode_unlock(vp);
67 if ((vp->v_lflag & VL_LABEL) == 0) {
68 vp->v_lflag |= VL_LABEL;
71 vnode_unlock(vp);
123 vnode_relabel(struct vnode *vp) argument
143 mac_vnop_setxattr(struct vnode *vp, const char *name, char *buf, size_t len) argument
165 mac_vnop_getxattr(struct vnode *vp, const char *name, char *buf, size_t len, size_t *attrlen) argument
185 mac_vnop_removexattr(struct vnode *vp, const char *name) argument
[all...]
H A Dmac_system.c73 mac_system_check_acct(kauth_cred_t cred, struct vnode *vp) argument
80 MAC_CHECK(system_check_acct, cred, vp,
81 vp != NULL ? vp->v_label : NULL);
139 mac_system_check_swapon(kauth_cred_t cred, struct vnode *vp) argument
146 MAC_CHECK(system_check_swapon, cred, vp, vp->v_label);
151 mac_system_check_swapoff(kauth_cred_t cred, struct vnode *vp) argument
160 MAC_CHECK(system_check_swapoff, cred, vp, vp
[all...]
H A Dmac_vfs.c140 mac_vnode_label_init(vnode_t vp) argument
143 vp->v_label = mac_vnode_label_alloc();
152 mac_vnode_label_recycle(vnode_t vp) argument
155 MAC_PERFORM(vnode_label_recycle, vp->v_label);
203 mac_vnode_label_destroy(struct vnode *vp) argument
206 mac_vnode_label_free(vp->v_label);
207 vp->v_label = NULL;
219 mac_vnode_label_externalize_audit(struct vnode *vp, struct mac *mac) argument
224 error = MAC_EXTERNALIZE_AUDIT(vnode, vp->v_label,
283 struct vnode *vp)
282 mac_devfs_label_update(struct mount *mp, struct devnode *de, struct vnode *vp) argument
294 mac_vnode_label_associate(struct mount *mp, struct vnode *vp, vfs_context_t ctx) argument
322 mac_vnode_label_associate_devfs(struct mount *mp, struct devnode *de, struct vnode *vp) argument
335 mac_vnode_label_associate_extattr(struct mount *mp, struct vnode *vp) argument
346 mac_vnode_label_associate_singlelabel(struct mount *mp, struct vnode *vp) argument
357 mac_vnode_notify_create(vfs_context_t ctx, struct mount *mp, struct vnode *dvp, struct vnode *vp, struct componentname *cnp) argument
380 mac_vnode_label_update_extattr(struct mount *mp, struct vnode *vp, const char *name) argument
400 mac_vnode_label_store(vfs_context_t ctx, struct vnode *vp, struct label *intlabel) argument
417 mac_cred_label_update_execve(vfs_context_t ctx, kauth_cred_t new, struct vnode *vp, struct label *scriptvnodelabel, struct label *execl) argument
437 mac_cred_check_label_update_execve(vfs_context_t ctx, struct vnode *vp, struct label *scriptvnodelabel, struct label *execlabel, struct proc *p) argument
454 mac_vnode_check_access(vfs_context_t ctx, struct vnode *vp, int acc_mode) argument
520 mac_vnode_check_unlink(vfs_context_t ctx, struct vnode *dvp, struct vnode *vp, struct componentname *cnp) argument
554 mac_vnode_check_deleteextattr(vfs_context_t ctx, struct vnode *vp, const char *name) argument
604 mac_vnode_check_getattrlist(vfs_context_t ctx, struct vnode *vp, struct attrlist *alist) argument
622 mac_vnode_check_exec(vfs_context_t ctx, struct vnode *vp, struct image_params *imgp) argument
640 mac_vnode_check_signature(struct vnode *vp, unsigned char *sha1, void * signature, size_t size) argument
670 mac_vnode_check_getextattr(vfs_context_t ctx, struct vnode *vp, const char *name, struct uio *uio) argument
687 mac_vnode_check_ioctl(vfs_context_t ctx, struct vnode *vp, u_int cmd) argument
702 mac_vnode_check_kqfilter(vfs_context_t ctx, kauth_cred_t file_cred, struct knote *kn, struct vnode *vp) argument
720 mac_vnode_check_link(vfs_context_t ctx, struct vnode *dvp, struct vnode *vp, struct componentname *cnp) argument
737 mac_vnode_check_listextattr(vfs_context_t ctx, struct vnode *vp) argument
768 mac_vnode_check_open(vfs_context_t ctx, struct vnode *vp, int acc_mode) argument
783 mac_vnode_check_read(vfs_context_t ctx, struct ucred *file_cred, struct vnode *vp) argument
816 mac_vnode_check_readlink(vfs_context_t ctx, struct vnode *vp) argument
831 mac_vnode_check_label_update(vfs_context_t ctx, struct vnode *vp, struct label *newlabel) argument
848 mac_vnode_check_rename_from(vfs_context_t ctx, struct vnode *dvp, struct vnode *vp, struct componentname *cnp) argument
865 mac_vnode_check_rename_to(vfs_context_t ctx, struct vnode *dvp, struct vnode *vp, int samedir, struct componentname *cnp) argument
882 mac_vnode_check_revoke(vfs_context_t ctx, struct vnode *vp) argument
897 mac_vnode_check_select(vfs_context_t ctx, struct vnode *vp, int which) argument
930 mac_vnode_check_setattrlist(vfs_context_t ctx, struct vnode *vp, struct attrlist *alist) argument
946 mac_vnode_check_setextattr(vfs_context_t ctx, struct vnode *vp, const char *name, struct uio *uio) argument
963 mac_vnode_check_setflags(vfs_context_t ctx, struct vnode *vp, u_long flags) argument
978 mac_vnode_check_setmode(vfs_context_t ctx, struct vnode *vp, mode_t mode) argument
993 mac_vnode_check_setowner(vfs_context_t ctx, struct vnode *vp, uid_t uid, gid_t gid) argument
1009 mac_vnode_check_setutimes(vfs_context_t ctx, struct vnode *vp, struct timespec atime, struct timespec mtime) argument
1026 mac_vnode_check_stat(vfs_context_t ctx, struct ucred *file_cred, struct vnode *vp) argument
1043 mac_vnode_check_truncate(vfs_context_t ctx, struct ucred *file_cred, struct vnode *vp) argument
1061 mac_vnode_check_write(vfs_context_t ctx, struct ucred *file_cred, struct vnode *vp) argument
1078 mac_vnode_label_update(vfs_context_t ctx, struct vnode *vp, struct label *newlabel) argument
1137 mac_mount_check_mount(vfs_context_t ctx, struct vnode *vp, struct componentname *cnp, const char *vfc_name) argument
1288 vn_setlabel(struct vnode *vp, struct label *intlabel, vfs_context_t context) argument
1335 mac_vnode_label_associate_fdesc(struct mount *mp, struct fdescnode *fnp, struct vnode *vp, vfs_context_t ctx) argument
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/
H A Dhfs_btreeio.h40 extern OSStatus SetBTreeBlockSize(FileReference vp, ByteCount blockSize,
43 extern OSStatus GetBTreeBlock(FileReference vp, u_int32_t blockNum,
46 extern OSStatus ReleaseBTreeBlock(FileReference vp, BlockDescPtr blockPtr,
49 extern OSStatus ExtendBTreeFile(FileReference vp, FSSize minEOF, FSSize maxEOF);
51 extern void ModifyBlockStart(FileReference vp, BlockDescPtr blockPtr);
H A Dhfs_btreeio.c53 static int ClearBTNodes(struct vnode *vp, long blksize, off_t offset, off_t amount);
58 OSStatus SetBTreeBlockSize(FileReference vp, ByteCount blockSize, __unused ItemCount minBlockCount) argument
62 DBG_ASSERT(vp != NULL);
67 bTreePtr = (BTreeControlBlockPtr)VTOF(vp)->fcbBTCBPtr;
75 OSStatus GetBTreeBlock(FileReference vp, u_int32_t blockNum, GetBlockOptions options, BlockDescriptor *block) argument
95 bp = buf_getblk(vp, (daddr64_t)blockNum, block->blockSize, 0, 0, BLK_META);
97 VNOP_BLOCKMAP(vp, offset, block->blockSize, &blkno, NULL, NULL, 0, NULL) == 0) {
101 retval = buf_meta_bread(vp, (daddr64_t)blockNum, block->blockSize, NOCRED, &bp);
128 retval = hfs_swap_BTNode (block, vp, kSwapBTNodeHeaderRecordOnly, allow_empty_node);
135 retval = hfs_swap_BTNode (block, vp, kSwapBTNodeBigToHos
169 ModifyBlockStart(FileReference vp, BlockDescPtr blockPtr) argument
193 struct vnode *vp = buf_vnode(bp); local
222 ReleaseBTreeBlock(FileReference vp, BlockDescPtr blockPtr, ReleaseBlockOptions options) argument
320 ExtendBTreeFile(FileReference vp, FSSize minEOF, FSSize maxEOF) argument
519 ClearBTNodes(struct vnode *vp, long blksize, off_t offset, off_t amount) argument
581 struct vnode* vp = NULLVP; local
[all...]
H A Dhfs_readwrite.c82 extern int is_file_clean(vnode_t vp, off_t filesize);
101 struct vnode *vp = ap->a_vp; local
113 if (!vnode_isreg(vp)) {
115 if (vnode_isdir(vp))
125 cp = VTOC(vp);
126 fp = VTOF(vp);
127 hfsmp = VTOHFS(vp);
145 retval = cluster_read(vp, uio, filesize, ap->a_ioflag);
194 struct vnode *vp = ap->a_vp; local
226 if (!vnode_isreg(vp))
936 struct vnode *vp; local
1009 do_bulk_access_check(struct hfsmount *hfsmp, struct vnode *vp, struct vnop_ioctl_args *ap, int arg_size, vfs_context_t context) argument
1312 hfs_freezewrite_callback(struct vnode *vp, __unused void *cargs) argument
1331 struct vnode * vp = ap->a_vp; local
1928 hfs_bmap(struct vnode *vp, daddr_t bn, struct vnode **vpp, daddr64_t *bnp, unsigned int *runp) argument
2050 struct vnode *vp = ap->a_vp; local
2297 vnode_t vp = buf_vnode(bp); local
2304 do_hfs_truncate(struct vnode *vp, off_t length, int flags, vfs_context_t context) argument
2595 hfs_truncate(struct vnode *vp, off_t length, int flags, int skipsetsize, vfs_context_t context) argument
2683 struct vnode *vp = ap->a_vp; local
2916 vnode_t vp = ap->a_vp; local
2980 vnode_t vp = ap->a_vp; local
3058 register struct vnode *vp = buf_vnode(bp); local
3139 hfs_relocate(struct vnode *vp, u_int32_t blockHint, kauth_cred_t cred, struct proc *p) argument
3392 hfs_clonelink(struct vnode *vp, int blksize, kauth_cred_t cred, __unused struct proc *p) argument
3425 hfs_clonefile(struct vnode *vp, int blkstart, int blkcnt, int blksize) argument
3502 hfs_clonesysfile(struct vnode *vp, int blkstart, int blkcnt, int blksize, kauth_cred_t cred, struct proc *p) argument
[all...]
H A Dhfs_cnode.c56 static int hfs_filedone(struct vnode *vp, vfs_context_t context);
70 struct vnode *vp = ap->a_vp; local
72 struct hfsmount *hfsmp = VTOHFS(vp);
85 v_type = vnode_vtype(vp);
86 cp = VTOC(vp);
88 if ((hfsmp->hfs_flags & HFS_READ_ONLY) || vnode_issystem(vp) ||
97 vnode_recycle(vp);
116 (VTOF(vp)->ff_blocks != 0)) {
118 ubc_setsize(vp, 0);
122 if (v_type == VREG && !ISSET(cp->c_flag, C_DELETED) && VTOF(vp)
319 hfs_filedone(struct vnode *vp, vfs_context_t context) argument
395 struct vnode *vp = ap->a_vp; local
531 struct vnode *vp = NULL; local
1018 vnode_t vp = NULLVP; local
1182 vnode_t vp = NULLVP; local
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/miscfs/nullfs/
H A Dnull.h104 #define VTONULL(vp) ((struct null_node *)(vp)->v_data)
107 extern struct vnode *null_checkvp(struct vnode *vp, char *fil, int lno);
108 #define NULLVPTOLOWERVP(vp) null_checkvp((vp), __FILE__, __LINE__)
110 #define NULLVPTOLOWERVP(vp) (VTONULL(vp)->null_lowervp)
H A Dnull_subr.c92 #define NULL_NHASH(vp) \
93 (&null_node_hashtbl[(((u_long)vp)>>LOG2_SIZEVNODE) & null_node_hash])
120 struct vnode *vp; local
132 vp = NULLTOV(a);
134 if (vnode_get(vp)) {
138 return (vp);
159 struct vnode *othervp, *vp; local
167 vp = *vpp;
169 vp->v_type = lowervp->v_type;
170 xp->null_vnode = vp;
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/vfs/
H A Dvfs_subr.c169 static void vclean(vnode_t vp, int flag);
173 static errno_t vnode_getiocount(vnode_t vp, int vid, int vflags);
176 static vnode_t checkalias(vnode_t vp, dev_t nvp_rdev);
180 static void insmntque(vnode_t vp, mount_t mp);
206 #define VLISTCHECK(fun, vp, list) \
207 if ((vp)->v_freelist.tqe_prev == (struct vnode **)0xdeadb) \
210 #define VLISTCHECK(fun, vp, list)
213 #define VLISTNONE(vp) \
215 (vp)->v_freelist.tqe_next = (struct vnode *)0; \
216 (vp)
319 vnode_waitforwrites(vnode_t vp, int output_target, int slpflag, int slptimeout, const char *msg) argument
350 vnode_startwrite(vnode_t vp) argument
357 vnode_writedone(vnode_t vp) argument
389 vnode_hasdirtyblks(vnode_t vp) argument
415 vnode_hascleanblks(vnode_t vp) argument
444 vnode_t vp; local
478 vnode_t vp; local
555 struct vnode *vp; local
933 struct vnode *vp; local
1153 insmntque(vnode_t vp, mount_t mp) argument
1289 struct vnode *vp; local
1368 vget_internal(vnode_t vp, int vid, int vflags) argument
1398 vnode_ref(vnode_t vp) argument
1409 vnode_ref_ext(vnode_t vp, int fmode) argument
1474 vnode_list_add(vnode_t vp) argument
1532 vnode_list_remove_locked(vnode_t vp) argument
1554 vnode_list_remove(vnode_t vp) argument
1591 vnode_rele(vnode_t vp) argument
1598 vnode_rele_ext(vnode_t vp, int fmode, int dont_reenter) argument
1605 vnode_rele_internal(vnode_t vp, int fmode, int dont_reenter, int locked) argument
1722 struct vnode *vp; local
1889 vclean(vnode_t vp, int flags) argument
2025 vn_revoke(vnode_t vp, int flags, __unused vfs_context_t a_context) argument
2083 vnode_recycle(struct vnode *vp) argument
2100 vnode_reload(vnode_t vp) argument
2120 vgone(vnode_t vp, int flags) argument
2181 vnode_t vp; local
2212 vcount(vnode_t vp) argument
2285 vprint(const char *label, struct vnode *vp) argument
2312 vn_getpath(struct vnode *vp, char *pathbuf, int *len) argument
2319 vn_getcdhash(struct vnode *vp, off_t offset, unsigned char *cdhash) argument
2419 vn_path_package_check(__unused vnode_t vp, char *path, int pathlen, int *component) argument
2584 vfs_mountedon(struct vnode *vp) argument
2651 vnode_pager_vrele(vnode_t vp) argument
3258 vnode_t vp; local
3511 vnode_lock(vnode_t vp) argument
3517 vnode_lock_spin(vnode_t vp) argument
3523 vnode_unlock(vnode_t vp) argument
3531 vnode_get(struct vnode *vp) argument
3543 vnode_get_locked(struct vnode *vp) argument
3557 vnode_getwithvid(vnode_t vp, int vid) argument
3563 vnode_getwithref(vnode_t vp) argument
3570 vnode_getalways(vnode_t vp) argument
3576 vnode_put(vnode_t vp) argument
3588 vnode_put_locked(vnode_t vp) argument
3633 vnode_isinuse(vnode_t vp, int refcnt) argument
3640 vnode_isinuse_locked(vnode_t vp, int refcnt, int locked) argument
3663 vnode_resume(vnode_t vp) argument
3686 vnode_suspend(vnode_t vp) argument
3711 vnode_drain(vnode_t vp) argument
3739 vnode_getiocount(vnode_t vp, int vid, int vflags) argument
3798 vnode_dropiocount(vnode_t vp) argument
3815 vnode_reclaim(struct vnode * vp) argument
3822 vnode_reclaim_internal(struct vnode * vp, int locked, int reuse, int flags) argument
3919 vnode_t vp; local
4079 vnode_addfsref(vnode_t vp) argument
4092 vnode_removefsref(vnode_t vp) argument
4404 vnode_close(vnode_t vp, int flags, vfs_context_t ctx) argument
4422 vnode_size(vnode_t vp, off_t *sizep, vfs_context_t ctx) argument
4436 vnode_setsize(vnode_t vp, off_t size, int ioflag, vfs_context_t ctx) argument
4493 vnode_t vp = (vnode_t)0; local
4617 vnode_t vp; member in struct:_vnode_authorize_context
4655 vnode_authorize(vnode_t vp, vnode_t dvp, kauth_action_t action, vfs_context_t ctx) argument
5278 vnode_authorize_checkimmutable(vnode_t vp, struct vnode_attr *vap, int rights, int ignore) argument
5354 vnode_authorize_opaque(vnode_t vp, int *resultp, kauth_action_t action, vfs_context_t ctx) argument
5438 vnode_t vp, dvp; local
5483 vnode_t vp, dvp; local
5965 vnode_authattr(vnode_t vp, struct vnode_attr *vap, kauth_action_t *actionp, vfs_context_t ctx) argument
6440 vnode_t vp; local
6462 vn_setunionwait(vnode_t vp) argument
6471 vn_checkunionwait(vnode_t vp) argument
6480 vn_clearunionwait(vnode_t vp, int locked) argument
6713 record_vp(vnode_t vp, int count) argument
[all...]
H A Dvfs_cache.c95 * obtained from (vp, name) where vp refers to the directory
153 static void cache_enter_locked(vnode_t dvp, vnode_t vp, struct componentname *cnp);
187 vnode_t vp; local
205 vp = first_vp;
210 while (vp && vp->v_flag & VROOT) {
211 if (vp->v_mount == NULL) {
214 if ((vp->v_mount->mnt_flag & MNT_ROOTFS) || (vp
411 vnode_getparent(vnode_t vp) argument
437 vnode_getname(vnode_t vp) argument
475 vnode_update_identity(vnode_t vp, vnode_t dvp, const char *name, int name_len, int name_hashval, int flags) argument
639 vnode_setmultipath(vnode_t vp) argument
664 vnode_uncache_credentials(vnode_t vp) argument
681 vnode_uncache_authorized_action(vnode_t vp, kauth_action_t action) argument
704 vnode_cache_is_authorized(vnode_t vp, vfs_context_t ctx, kauth_action_t action) argument
745 vnode_cache_authorized_action(vnode_t vp, vfs_context_t ctx, kauth_action_t action) argument
809 vnode_cache_is_stale(vnode_t vp) argument
838 vnode_t vp = NULLVP; local
1138 vnode_t vp; local
1222 vnode_t vp; local
1311 cache_enter_with_gen(struct vnode *dvp, struct vnode *vp, struct componentname *cnp, int gen) argument
1330 cache_enter(struct vnode *dvp, struct vnode *vp, struct componentname *cnp) argument
1344 cache_enter_locked(struct vnode *dvp, struct vnode *vp, struct componentname *cnp) argument
1640 cache_purge(vnode_t vp) argument
1680 cache_purge_negatives(vnode_t vp) argument
[all...]
H A Dvfs_vnops.c126 static int vn_kqfilt_remove(struct vnode *vp, uintptr_t ident,
204 struct vnode *vp; local
212 vp = NULL;
233 vp = ndp->ni_vp;
236 if (vp == NULL) {
266 vp = ndp->ni_vp;
268 if (vp) {
272 if (vp->v_name == NULL)
274 if (vp->v_parent == NULLVP)
278 vnode_update_identity(vp, dv
460 vn_access(vnode_t vp, int mode, vfs_context_t context) argument
480 vn_close(struct vnode *vp, int flags, vfs_context_t ctx) argument
518 vn_read_swapfile( struct vnode *vp, uio_t uio) argument
602 vn_rdwr( enum uio_rw rw, struct vnode *vp, caddr_t base, int len, off_t offset, enum uio_seg segflg, int ioflg, kauth_cred_t cred, int *aresid, proc_t p) argument
628 vn_rdwr_64( enum uio_rw rw, struct vnode *vp, uint64_t base, int64_t len, off_t offset, enum uio_seg segflg, int ioflg, kauth_cred_t cred, int *aresid, proc_t p) argument
700 struct vnode *vp; local
749 struct vnode *vp; local
875 vn_stat_noauth(struct vnode *vp, void *sbptr, kauth_filesec_t *xsec, int isstat64, vfs_context_t ctx) argument
1042 vn_stat(struct vnode *vp, void *sb, kauth_filesec_t *xsec, int isstat64, vfs_context_t ctx) argument
1067 struct vnode *vp = ((struct vnode *)fp->f_fglob->fg_data); local
1164 struct vnode * vp = (struct vnode *)fp->f_fglob->fg_data; local
1193 vn_lock(__unused vnode_t vp, __unused int flags, __unused proc_t p) argument
1204 struct vnode *vp = (struct vnode *)fg->fg_data; local
1230 vn_pathconf(vnode_t vp, int name, register_t *retval, vfs_context_t ctx) argument
1282 struct vnode *vp = (struct vnode *)fp->f_fglob->fg_data; local
[all...]
H A Dkpi_vfs.c143 vnode_setneedinactive(vnode_t vp) argument
145 cache_purge(vp);
147 vnode_lock_spin(vp);
148 vp->v_lflag |= VL_NEEDINACTIVE;
149 vnode_unlock(vp);
154 lock_fsnode(vnode_t vp, int *funnel_state) argument
159 if (vp->v_unsafefs) {
160 if (vp->v_unsafefs->fsnodeowner == current_thread()) {
161 vp->v_unsafefs->fsnode_count++;
163 lck_mtx_lock(&vp
181 unlock_fsnode(vnode_t vp, int *funnel_state) argument
473 VFS_VPTOFH(struct vnode * vp, int *fhlenp, unsigned char * fhp, vfs_context_t ctx) argument
1407 vnode_vid(vnode_t vp) argument
1414 vnode_mount(vnode_t vp) argument
1421 vnode_mountedhere(vnode_t vp) argument
1434 vnode_vtype(vnode_t vp) argument
1441 vnode_fsnode(vnode_t vp) argument
1447 vnode_clearfsnode(vnode_t vp) argument
1453 vnode_specrdev(vnode_t vp) argument
1462 vnode_isvroot(vnode_t vp) argument
1469 vnode_issystem(vnode_t vp) argument
1476 vnode_isswap(vnode_t vp) argument
1483 vnode_ismount(vnode_t vp) argument
1490 vnode_isrecycled(vnode_t vp) argument
1502 vnode_isnocache(vnode_t vp) argument
1511 vnode_isnoreadahead(vnode_t vp) argument
1517 vnode_is_openevt(vnode_t vp) argument
1524 vnode_isstandard(vnode_t vp) argument
1531 vnode_isnoflush(vnode_t vp) argument
1538 vnode_isreg(vnode_t vp) argument
1545 vnode_isdir(vnode_t vp) argument
1552 vnode_islnk(vnode_t vp) argument
1559 vnode_isfifo(vnode_t vp) argument
1566 vnode_isblk(vnode_t vp) argument
1573 vnode_ischr(vnode_t vp) argument
1580 vnode_issock(vnode_t vp) argument
1620 vnode_setnocache(vnode_t vp) argument
1628 vnode_clearnocache(vnode_t vp) argument
1636 vnode_set_openevt(vnode_t vp) argument
1644 vnode_clear_openevt(vnode_t vp) argument
1653 vnode_setnoreadahead(vnode_t vp) argument
1661 vnode_clearnoreadahead(vnode_t vp) argument
1671 vnode_setnoflush(vnode_t vp) argument
1679 vnode_clearnoflush(vnode_t vp) argument
1689 vnode_ismountedon(vnode_t vp) argument
1695 vnode_setmountedon(vnode_t vp) argument
1703 vnode_clearmountedon(vnode_t vp) argument
1712 vnode_settag(vnode_t vp, int tag) argument
1719 vnode_tag(vnode_t vp) argument
1725 vnode_parent(vnode_t vp) argument
1732 vnode_setparent(vnode_t vp, vnode_t dvp) argument
1738 vnode_name(vnode_t vp) argument
1745 vnode_setname(vnode_t vp, char * name) argument
1752 vnode_vfsname(vnode_t vp, char * buf) argument
1759 vnode_vfstypenum(vnode_t vp) argument
1765 vnode_vfs64bitready(vnode_t vp) argument
1778 vnode_vfsvisflags(vnode_t vp) argument
1785 vnode_vfscmdflags(vnode_t vp) argument
1792 vnode_vfsmaxsymlen(vnode_t vp) argument
1799 vnode_vfsstatfs(vnode_t vp) argument
1806 vnode_vfsfsprivate(vnode_t vp) argument
1813 vnode_vfsisrdonly(vnode_t vp) argument
1836 struct vnode * vp ; local
1879 vnode_get_filesec(vnode_t vp, kauth_filesec_t *fsecp, vfs_context_t ctx) argument
2020 vnode_set_filesec(vnode_t vp, kauth_filesec_t fsec, kauth_acl_t acl, vfs_context_t ctx) argument
2069 vnode_getattr(vnode_t vp, struct vnode_attr *vap, vfs_context_t ctx) argument
2301 vnode_setattr(vnode_t vp, struct vnode_attr *vap, vfs_context_t ctx) argument
2394 vnode_setattr_fallback(vnode_t vp, struct vnode_attr *vap, vfs_context_t ctx) argument
2554 vnode_t vp; local
2750 VNOP_OPEN(vnode_t vp, int mode, vfs_context_t ctx) argument
2799 VNOP_CLOSE(vnode_t vp, int fflag, vfs_context_t ctx) argument
2848 VNOP_ACCESS(vnode_t vp, int action, vfs_context_t ctx) argument
2890 VNOP_GETATTR(vnode_t vp, struct vnode_attr * vap, vfs_context_t ctx) argument
2929 VNOP_SETATTR(vnode_t vp, struct vnode_attr * vap, vfs_context_t ctx) argument
3020 VNOP_READ(vnode_t vp, struct uio * uio, int ioflag, vfs_context_t ctx) argument
3074 VNOP_WRITE(vnode_t vp, struct uio * uio, int ioflag, vfs_context_t ctx) argument
3129 VNOP_IOCTL(vnode_t vp, u_long command, caddr_t data, int fflag, vfs_context_t ctx) argument
3190 VNOP_SELECT(vnode_t vp, int which , int fflags, void * wql, vfs_context_t ctx) argument
3301 VNOP_REVOKE(vnode_t vp, int flags, vfs_context_t ctx) argument
3339 VNOP_MMAP(vnode_t vp, int fflags, vfs_context_t ctx) argument
3378 VNOP_MNOMAP(vnode_t vp, vfs_context_t ctx) argument
3417 VNOP_FSYNC(vnode_t vp, int waitfor, vfs_context_t ctx) argument
3460 VNOP_REMOVE(vnode_t dvp, vnode_t vp, struct componentname * cnp, int flags, vfs_context_t ctx) argument
3515 VNOP_LINK(vnode_t vp, vnode_t tdvp, struct componentname * cnp, vfs_context_t ctx) argument
3945 VNOP_RMDIR(struct vnode *dvp, struct vnode *vp, struct componentname *cnp, vfs_context_t ctx) argument
4201 VNOP_READDIR(struct vnode *vp, struct uio *uio, int flags, int *eofflag, int *numdirent, vfs_context_t ctx) argument
4251 VNOP_READDIRATTR(struct vnode *vp, struct attrlist *alist, struct uio *uio, u_long maxcount, u_long options, u_long *newstate, int *eofflag, u_long *actualcount, vfs_context_t ctx) argument
4317 VNOP_READLINK(struct vnode *vp, struct uio *uio, vfs_context_t ctx) argument
4355 VNOP_INACTIVE(struct vnode *vp, vfs_context_t ctx) argument
4408 VNOP_RECLAIM(struct vnode *vp, vfs_context_t ctx) argument
4453 VNOP_PATHCONF(struct vnode *vp, int name, register_t *retval, vfs_context_t ctx) argument
4507 VNOP_ADVLOCK(struct vnode *vp, caddr_t id, int op, struct flock *fl, int flags, vfs_context_t ctx) argument
4566 VNOP_ALLOCATE(struct vnode *vp, off_t length, u_int32_t flags, off_t *bytesallocated, off_t offset, vfs_context_t ctx) argument
4612 VNOP_PAGEIN(struct vnode *vp, upl_t pl, vm_offset_t pl_offset, off_t f_offset, size_t size, int flags, vfs_context_t ctx) argument
4658 VNOP_PAGEOUT(struct vnode *vp, upl_t pl, vm_offset_t pl_offset, off_t f_offset, size_t size, int flags, vfs_context_t ctx) argument
4711 VNOP_SEARCHFS(struct vnode *vp, void *searchparams1, void *searchparams2, struct attrlist *searchattrs, u_long maxmatches, struct timeval *timelimit, struct attrlist *returnattrs, u_long *nummatches, u_long scriptcode, u_long options, struct uio *uio, struct searchstate *searchstate, vfs_context_t ctx) argument
4784 VNOP_GETXATTR(vnode_t vp, const char *name, uio_t uio, size_t *size, int options, vfs_context_t ctx) argument
4813 VNOP_SETXATTR(vnode_t vp, const char *name, uio_t uio, int options, vfs_context_t ctx) argument
4843 VNOP_REMOVEXATTR(vnode_t vp, const char *name, int options, vfs_context_t ctx) argument
4870 VNOP_LISTXATTR(vnode_t vp, uio_t uio, size_t *size, int options, vfs_context_t ctx) argument
4912 VNOP_BLKTOOFF(struct vnode *vp, daddr64_t lblkno, off_t *offset) argument
4949 VNOP_OFFTOBLK(struct vnode *vp, off_t offset, daddr64_t *lblkno) argument
4991 VNOP_BLOCKMAP(struct vnode *vp, off_t foffset, size_t size, daddr64_t *bpn, size_t *run, void *poff, int flags, vfs_context_t ctx) argument
5066 VNOP_KQFILT_ADD(struct vnode *vp, struct knote *kn, vfs_context_t ctx) argument
5100 VNOP_KQFILT_REMOVE(struct vnode *vp, uintptr_t ident, vfs_context_t ctx) argument
5134 VNOP_SETLABEL(struct vnode *vp, struct label *label, vfs_context_t ctx) argument
5165 VNOP_GETNAMEDSTREAM(vnode_t vp, vnode_t *svpp, const char *name, enum nsoperation operation, int flags, vfs_context_t ctx) argument
5186 VNOP_MAKENAMEDSTREAM(vnode_t vp, vnode_t *svpp, const char *name, int flags, vfs_context_t ctx) argument
5207 VNOP_REMOVENAMEDSTREAM(vnode_t vp, vnode_t svp, const char *name, int flags, vfs_context_t ctx) argument
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/ufs/ufs/
H A Dufs_inode.c96 struct vnode *vp = ap->a_vp; local
97 struct inode *ip = VTOI(vp);
103 if (prtactive && vp->v_usecount != 0)
104 vprint("ffs_inactive: pushing active", vp);
111 if (ip->i_nlink <= 0 && (vp->v_mount->mnt_flag & MNT_RDONLY) == 0) {
121 error = ffs_truncate_internal(vp, (off_t)0, 0, NOCRED);
126 ffs_vfree(vp, ip->i_number, mode);
130 ffs_update(vp, &tv, &tv, 0);
138 vnode_recycle(vp);
146 ufs_reclaim(vp,
[all...]
H A Dufs_readwrite.c91 ffs_read_internal(vnode_t vp, struct uio *uio, int ioflag) argument
105 ip = VTOI(vp);
109 rev_endian=(vp->v_mount->mnt_flag & MNT_REVEND);
116 if (vp->v_type == VLNK) {
117 if ((int)ip->i_size < vp->v_mount->mnt_maxsymlinklen)
119 } else if (vp->v_type != VREG && vp->v_type != VDIR)
120 panic("ffs_read: invalid v_type = %x", vp->v_type);
128 if (UBCINFOEXISTS(vp)) {
129 error = cluster_read(vp, ui
222 ffs_write_internal(vnode_t vp, struct uio *uio, int ioflag, kauth_cred_t cred) argument
513 register struct vnode *vp = ap->a_vp; local
554 register struct vnode *vp = ap->a_vp; local
[all...]
/macosx-10.5.8/xnu-1228.15.4/EXTERNAL_HEADERS/mach-o/
H A Dfat.h72 int fatfile_getarch_affinity(struct vnode *vp, vm_offset_t data_ptr,
74 int fatfile_getarch(struct vnode *vp, vm_offset_t data_ptr,
76 int fatfile_getarch_with_bits(struct vnode *vp, integer_t archbits,
/macosx-10.5.8/xnu-1228.15.4/bsd/vm/
H A Ddp_backing_file.c167 vnode_t vp = (vnode_t)NULL; local
203 vp = ndp->ni_vp;
205 if (vp->v_type != VREG) {
211 if ((error = vnode_size(vp, &file_size, ctx)) != 0)
214 vnode_lock(vp);
215 error = mac_system_check_swapon(vfs_context_ucred(ctx), vp);
216 vnode_unlock(vp);
222 if ((file_size < (off_t)size) && ((error = vnode_setsize(vp, (off_t)size, 0, ctx)) != 0))
227 while(bs_port_table[i].vp != 0) {
238 bs_port_table[i].vp
318 struct vnode *vp = 0; local
[all...]
H A Dvnode_pager.c86 vnode_pager_get_filesize(struct vnode *vp) argument
89 return (vm_object_offset_t) ubc_getsize(vp);
94 struct vnode *vp,
101 error = vn_getpath(vp, pathname, &len);
111 struct vnode *vp,
114 *filename = vp->v_name;
120 struct vnode *vp,
123 *blobs = ubc_get_cs_blobs(vp);
128 vnode_pageout(struct vnode *vp, argument
155 if (UBCINFOEXISTS(vp)
93 vnode_pager_get_pathname( struct vnode *vp, char *pathname, vm_size_t *length_p) argument
110 vnode_pager_get_filename( struct vnode *vp, const char **filename) argument
119 vnode_pager_get_cs_blobs( struct vnode *vp, void **blobs) argument
347 vnode_pagein( struct vnode *vp, upl_t upl, vm_offset_t upl_offset, vm_object_offset_t f_offset, vm_size_t size, int flags, int *errorp) argument
530 vnode_t vp; local
[all...]
H A Dvnode_pager.h94 struct vnode *vp; member in struct:bs_map
140 struct vnode *vp);
143 struct vnode *vp,
148 struct vnode *vp,
152 struct vnode *vp,
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Dubc_subr.c98 static int ubc_info_init_internal(struct vnode *vp, int withfsize, off_t filesize);
309 * Parameters: vp Pointer to the vnode
317 ubc_info_init(struct vnode *vp) argument
319 return(ubc_info_init_internal(vp, 0, 0));
328 * Parameters: vp Pointer to the vnode
336 ubc_info_init_withsize(struct vnode *vp, off_t filesize) argument
338 return(ubc_info_init_internal(vp, 1, filesize));
347 * Parameters: vp Pointer to the vnode
371 ubc_info_init_internal(vnode_t vp, int withfsize, off_t filesize) argument
379 uip = vp
529 ubc_setsize(struct vnode *vp, off_t nsize) argument
623 ubc_getsize(struct vnode *vp) argument
672 ubc_umcallback(vnode_t vp, __unused void * args) argument
699 ubc_getcred(struct vnode *vp) argument
766 ubc_setthreadcred(struct vnode *vp, proc_t p, thread_t thread) argument
823 ubc_setcred(struct vnode *vp, proc_t p) argument
864 ubc_getpager(struct vnode *vp) argument
897 ubc_getobject(struct vnode *vp, __unused int flags) argument
932 ubc_blktooff(vnode_t vp, daddr64_t blkno) argument
975 ubc_offtoblk(vnode_t vp, off_t offset) argument
1002 ubc_pages_resident(vnode_t vp) argument
1050 ubc_sync_range(vnode_t vp, off_t beg_off, off_t end_off, int flags) argument
1090 ubc_msync(vnode_t vp, off_t beg_off, off_t end_off, off_t *resid_off, int flags) argument
1168 ubc_msync_internal(vnode_t vp, off_t beg_off, off_t end_off, off_t *resid_off, int flags, int *io_errno) argument
1274 ubc_map(vnode_t vp, int flags) argument
1349 ubc_destroy_named(vnode_t vp) argument
1394 ubc_isinuse(struct vnode *vp, int busycount) argument
1431 ubc_isinuse_locked(struct vnode *vp, int busycount, int locked) argument
1468 ubc_unmap(struct vnode *vp) argument
1595 ubc_page_op( struct vnode *vp, off_t f_offset, int ops, ppnum_t *phys_entryp, int *flagsp) argument
1675 ubc_range_op( struct vnode *vp, off_t f_offset_beg, off_t f_offset_end, int ops, int *range) argument
1735 ubc_create_upl( struct vnode *vp, off_t f_offset, long bufsize, upl_t *uplp, upl_page_info_t **plp, int uplflags) argument
2105 UBCINFOEXISTS(struct vnode * vp) argument
2165 ubc_cs_blob_add( struct vnode *vp, cpu_type_t cputype, off_t base_offset, vm_address_t addr, vm_size_t size) argument
2415 ubc_cs_blob_get( struct vnode *vp, cpu_type_t cputype, off_t offset) argument
2481 ubc_get_cs_blobs( struct vnode *vp) argument
2670 ubc_cs_getcdhash( vnode_t vp, off_t offset, unsigned char *cdhash) argument
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/ddb/
H A Ddb_variables.h219 #define db_read_variable(vp, valuep) \
220 db_read_write_variable(vp, valuep, DB_VAR_GET, 0)
221 #define db_write_variable(vp, valuep) \
222 db_read_write_variable(vp, valuep, DB_VAR_SET, 0)
243 struct db_variable *vp,
H A Ddb_macro.h72 struct db_variable *vp,
/macosx-10.5.8/xnu-1228.15.4/bsd/miscfs/specfs/
H A Dspec_vnops.c165 set_blocksize(struct vnode *vp, dev_t dev) argument
173 vp->v_specsize = DEV_BSIZE;
175 vp->v_specsize = rsize;
178 vp->v_specsize = DEV_BSIZE;
182 set_fsblocksize(struct vnode *vp) argument
185 if (vp->v_type == VBLK) {
186 dev_t dev = (dev_t)vp->v_rdev;
192 vnode_lock(vp);
193 set_blocksize(vp, dev);
194 vnode_unlock(vp);
208 struct vnode *vp = ap->a_vp; local
319 struct vnode *vp = ap->a_vp; local
406 struct vnode *vp = ap->a_vp; local
570 spec_fsync_internal(vnode_t vp, int waitfor, __unused vfs_context_t context) argument
848 struct vnode *vp = ap->a_vp; local
997 struct vnode *vp = ap->a_vp; local
1021 struct vnode *vp = ap->a_vp; local
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/miscfs/synthfs/
H A Dsynthfs_util.c96 struct vnode *vp; local
139 result = vnode_create(VNCREATE_FLAVOR, VCREATESIZE, &vfsp, &vp);
146 vnode_ref(vp);
148 sp->s_vp = vp;
155 *vpp = vp;
162 int synthfs_remove_entry(struct vnode *vp) { argument
163 struct synthfsnode *sp = VTOS(vp);
210 struct vnode *vp; local
213 result = synthfs_newnode(mp, dp, name, nodeid, mode, p, VDIR, &vp);
217 sp = VTOS(vp);
236 synthfs_remove_directory(struct vnode *vp) argument
262 struct vnode *vp; local
286 synthfs_remove_symlink(struct vnode *vp) argument
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/miscfs/union/
H A Dunion_vnops.c256 * we will return that vp if it is regular file.
400 /* if this is faulting filesystem and upper vp exisits skip allocation of union node */
450 struct vnode *vp; local
457 error = VNOP_CREATE(dvp, &vp, cnp, ap->a_vap, ap->a_context);
462 if (UNNODE_FAULTIN(un) && (vp != NULLVP) && ((vnode_isreg(vp) != 0)|| (vnode_islnk(vp) != 0))) {
463 *ap->a_vpp = vp;
469 error = union_allocvp(ap->a_vpp, mp, NULLVP, NULLVP, cnp, vp,
473 vnode_put(vp);
522 struct vnode *vp; local
620 struct vnode *vp; local
658 struct vnode *vp; local
698 struct vnode *vp = un->un_uppervp; local
823 struct vnode *vp = OTHERVP(ap->a_vp); local
867 struct vnode *vp; local
940 struct vnode *vp = ap->a_vp; local
1033 struct vnode *vp = un->un_uppervp; local
1086 struct vnode *vp; local
1230 struct vnode *vp; local
1272 struct vnode *vp = un->un_uppervp; local
1325 struct vnode *vp; local
1379 struct vnode *vp = OTHERVP(ap->a_vp); local
1396 struct vnode *vp = ap->a_vp; local
1464 struct vnode *vp = OTHERVP(ap->a_vp); local
1484 struct vnode *vp = OTHERVP(ap->a_vp); local
1562 struct vnode *vp = OTHERVP(ap->a_vp); local
1611 struct vnode *vp; local
1650 struct vnode *vp = OTHERVP(ap->a_vp); local
1669 struct vnode *vp = OTHERVP(ap->a_vp); local
[all...]

Completed in 106 milliseconds

123456