• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/xnu-2782.1.97/bsd/kern/

Lines Matching defs:vp

756 	struct vnode *vp = NULLVP;	/* for AUDIT_ARG() at end */
955 vp = (struct vnode *)fp->f_data;
983 if ( (error = vnode_getwithref(vp)) ) {
993 (void)vnode_put(vp);
1001 (void)vnode_put(vp);
1007 error = VNOP_ADVLOCK(vp, (caddr_t)p, F_SETLK, &fl, flg, &context, timeout);
1008 (void)vnode_put(vp);
1013 (void)vnode_put(vp);
1019 error = VNOP_ADVLOCK(vp, (caddr_t)p, F_SETLK, &fl, flg, &context, timeout);
1020 (void)vnode_put(vp);
1024 error = VNOP_ADVLOCK(vp, (caddr_t)p, F_UNLCK, &fl,
1026 (void)vnode_put(vp);
1030 (void)vnode_put(vp);
1040 vp = (struct vnode *)fp->f_data;
1082 if ( (error = vnode_getwithref(vp)) == 0 ) {
1091 error = VNOP_ADVLOCK(vp, (caddr_t)p, uap->cmd, &fl, F_POSIX, &context, NULL);
1093 (void)vnode_put(vp);
1109 vp = (struct vnode *)fp->f_data;
1169 if ( (error = vnode_getwithref(vp)) == 0 ) {
1173 error = VNOP_ALLOCATE(vp,alloc_struct.fst_length,alloc_flags,
1176 (void)vnode_put(vp);
1191 vp = (struct vnode *)fp->f_data;
1199 error = vnode_getwithref(vp);
1205 fp->f_fglob->fg_cred, vp);
1207 (void)vnode_put(vp);
1222 error = vnode_setsize(vp, offset, IO_NOZEROFILL,
1226 (void)vnode_put(vp);
1282 vp = (struct vnode *)fp->f_data;
1285 if ( (error = vnode_getwithref(vp)) == 0 ) {
1287 *retval = vnode_isnocache(vp);
1290 vnode_setnocache(vp);
1292 vnode_clearnocache(vp);
1294 (void)vnode_put(vp);
1303 vp = (struct vnode *)fp->f_data;
1306 if ( (error = vnode_getwithref(vp)) == 0 ) {
1308 *retval = vnode_is_openevt(vp);
1311 vnode_set_openevt(vp);
1313 vnode_clear_openevt(vp);
1315 (void)vnode_put(vp);
1326 vp = (struct vnode *)fp->f_data;
1331 if ( (error = vnode_getwithref(vp)) == 0 ) {
1332 error = VNOP_IOCTL(vp, F_RDADVISE, (caddr_t)&ra_struct, 0, &context);
1334 (void)vnode_put(vp);
1345 vp = (struct vnode *)fp->f_data;
1348 if ( (error = vnode_getwithref(vp)) == 0 ) {
1349 error = cluster_push(vp, 0);
1351 (void)vnode_put(vp);
1376 vp = (struct vnode *)fp->f_data;
1378 if ( (error = vnode_getwithref(vp)) ) {
1381 error = VNOP_OFFTOBLK(vp, file_offset, &lbn);
1383 (void)vnode_put(vp);
1386 error = VNOP_BLKTOOFF(vp, lbn, &offset);
1388 (void)vnode_put(vp);
1391 devBlockSize = vfs_devblocksize(vnode_mount(vp));
1414 error = VNOP_BLOCKMAP(vp, offset, a_size, &bn, &run, NULL, 0, &context);
1416 (void)vnode_put(vp);
1450 vp = (struct vnode *)fp->f_data;
1459 if ( (error = vnode_getwithref(vp)) == 0 ) {
1460 error = vn_getpath(vp, pathbufp, &pathlen);
1461 (void)vnode_put(vp);
1478 vp = (struct vnode *)fp->f_data;
1485 if ( (error = vnode_getwithref(vp)) == 0 ) {
1487 error = vn_path_package_check(vp, pathbufp, pathlen, retval);
1489 (void)vnode_put(vp);
1504 vp = (struct vnode *)fp->f_data;
1507 if ( (error = vnode_getwithref(vp)) == 0 ) {
1508 error = VNOP_IOCTL(vp, uap->cmd, (caddr_t)NULL, 0, &context);
1510 (void)vnode_put(vp);
1530 vp = (struct vnode *)fp->f_data;
1533 if (vnode_getwithref(vp)) {
1539 if (vp->v_type != VDIR) {
1540 vnode_put(vp);
1557 vnode_put(vp);
1570 nd.ni_dvp = vp;
1575 vnode_put(vp);
1591 vp = (struct vnode *)fp->f_data;
1594 if (vnode_getwithref(vp)) {
1600 if (vp->v_type != VDIR) {
1601 vnode_put(vp);
1616 nd.ni_dvp = vp;
1620 vnode_put(vp);
1637 vp = (struct vnode *)fp->f_data;
1639 error = vnode_getwithref(vp);
1655 vnode_put(vp);
1659 if(ubc_cs_blob_get(vp, CPU_TYPE_ANY, fs.fs_file_start))
1661 vnode_put(vp);
1676 vnode_put(vp);
1684 vnode_put(vp);
1694 vp,
1708 vnode_put(vp);
1713 vp,
1724 ubc_cs_validation_bitmap_allocate( vp );
1728 (void) vnode_put(vp);
1741 vp = (struct vnode *)fp->f_data;
1743 error = vnode_getwithref(vp);
1749 (void)vnode_put(vp);
1754 error = mac_vnode_find_sigs(p, vp, offsetMacho);
1759 (void)vnode_put(vp);
1773 vp = (struct vnode *)fp->f_data;
1777 if (vnode_getwithref(vp)) {
1782 error = cp_vnode_getclass (vp, &class);
1787 vnode_put(vp);
1799 vp = (struct vnode *)fp->f_data;
1803 if (vnode_getwithref(vp)) {
1810 if(vnode_authorize(vp, NULLVP, (KAUTH_VNODE_ACCESS | KAUTH_VNODE_WRITE_DATA), ctx) != 0) {
1811 vnode_put(vp);
1815 error = cp_vnode_setclass (vp, tmp);
1816 vnode_put(vp);
1830 vp = (struct vnode *)fp->f_data;
1833 if (vnode_getwithref(vp)) {
1844 error = cp_vnode_transcode (vp, backup_keyp, &backup_key_len);
1845 vnode_put(vp);
1865 vp = (struct vnode*) fp->f_data;
1868 if (vnode_getwithref(vp)) {
1878 error = cp_get_root_major_vers (vp, &cp_version);
1881 vnode_put (vp);
1893 vp = (struct vnode*) fp->f_data;
1896 if (vnode_getwithref(vp)) {
1906 error = cp_get_default_level(vp, &cp_default);
1909 vnode_put (vp);
2054 vp = (struct vnode*) fp->f_data;
2058 if (vnode_getwithref(vp)) {
2064 if ((vnode_isreg(vp) == 0) && (vnode_islnk(vp) == 0)) {
2065 vnode_put(vp);
2073 if(vnode_authorize(vp, NULLVP, (KAUTH_VNODE_ACCESS | KAUTH_VNODE_WRITE_DATA), ctx) != 0) {
2074 vnode_put(vp);
2079 error = VNOP_IOCTL(vp, uap->cmd, (caddr_t)&gcounter, 0, &context);
2081 vnode_put (vp);
2109 vp = (struct vnode *)fp->f_data;
2112 error = vnode_getwithref(vp);
2120 if(vnode_authorize(vp, NULLVP, (KAUTH_VNODE_ACCESS | KAUTH_VNODE_WRITE_DATA), ctx) != 0) {
2121 vnode_put(vp);
2126 error = VNOP_IOCTL(vp, uap->cmd, ioctl_arg, 0, &context);
2127 (void)vnode_put(vp);
2170 vp = (struct vnode *)fp->f_data;
2173 error = vnode_getwithref(vp);
2181 if(vnode_authorize(vp, NULLVP, (KAUTH_VNODE_ACCESS | KAUTH_VNODE_WRITE_DATA), ctx) != 0) {
2182 vnode_put(vp);
2187 error = VNOP_IOCTL(vp, uap->cmd, param_ptr, 0, &context);
2188 (void)vnode_put(vp);
2206 vp = (struct vnode *)fp->f_data;
2242 if (vp->v_ubcinfo == NULL) {
2247 struct cs_blob *t_blob = vp->v_ubcinfo->cs_blobs;
2323 vp = (struct vnode *)fp->f_data;
2325 if (vp->v_tag != VT_HFS) {
2331 if (vnode_getwithref(vp)) {
2338 if(vnode_authorize(vp, NULLVP, (KAUTH_VNODE_ACCESS | KAUTH_VNODE_WRITE_DATA), ctx) != 0) {
2339 vnode_put(vp);
2347 error = VNOP_IOCTL (vp, uap->cmd, (caddr_t)1, 0, &context);
2350 error = VNOP_IOCTL (vp, uap->cmd, (caddr_t)NULL, 0, &context);
2353 vnode_put(vp);
2369 vp = (struct vnode *)fp->f_data;
2378 if ( (error = vnode_getwithref(vp)) == 0 ) {
2382 if ((error = vn_getpath(vp, pathbufp, &pathlen)) == 0) {
2383 if (vp->v_tag == VT_HFS) {
2384 error = VNOP_IOCTL (vp, uap->cmd, (caddr_t) &backingstore, 0, &context);
2386 (void)vnode_put(vp);
2402 (void)vnode_put(vp);
2433 vp = (struct vnode *)fp->f_data;
2436 if ( (error = vnode_getwithref(vp)) == 0 ) {
2453 (void)vnode_put(vp);
2461 (void)vnode_put(vp);
2475 (void)vnode_put(vp);
2507 error = VNOP_IOCTL(vp, uap->cmd, CAST_DOWN(caddr_t, data), 0, &context);
2509 (void)vnode_put(vp);
2521 AUDIT_ARG(vnpath_withref, vp, ARG_VNODE1);
3070 struct vnode *vp;
3103 vp = (struct vnode *)data;
3105 if ( (error = vnode_getwithref(vp)) == 0) {
3106 AUDIT_ARG(vnpath, vp, ARG_VNODE1);
3108 error = vn_pathconf(vp, uap->name, retval, vfs_context_current());
3110 (void)vnode_put(vp);
4082 vnode_t vp;
4095 vp = (struct vnode *)fp->f_data;
4097 *vpp = vp;
4099 if ((vidp != NULL) && (vp != NULLVP))
4100 *vidp = (uint32_t)vp->v_id;
4661 * will keep us from using a non-referenced vp
4663 * a properly referenced vp
4916 struct vnode *vp;
4948 vp = (struct vnode *)fg->fg_data;
4950 if ( (error = vnode_getwithref(vp)) == 0 ) {
4951 (void) VNOP_ADVLOCK(vp, (caddr_t)p, F_UNLCK, &lf, F_POSIX, &context, NULL);
4952 (void)vnode_put(vp);
5108 struct vnode *vp;
5114 if ( (error = fp_getfvp(p, fd, &fp, &vp)) ) {
5117 if ( (error = vnode_getwithref(vp)) ) {
5120 AUDIT_ARG(vnpath, vp, ARG_VNODE1);
5128 error = VNOP_ADVLOCK(vp, (caddr_t)fp->f_fglob, F_UNLCK, &lf, F_FLOCK, ctx, NULL);
5146 error = VNOP_ADVLOCK(vp, (caddr_t)fp->f_fglob, F_SETLK, &lf, F_FLOCK, ctx, NULL);
5149 error = VNOP_ADVLOCK(vp, (caddr_t)fp->f_fglob, F_SETLK, &lf, F_FLOCK|F_WAIT, ctx, NULL);
5151 (void)vnode_put(vp);