Lines Matching defs:to

7  * as defined in and that are subject to the Apple Public Source License
9 * compliance with the License. The rights granted to you under the License
10 * may not be used to create, or enable the creation or redistribution of,
11 * unlawful or unlicensed copies of an Apple operating system, or to
34 * This code is derived from software contributed to Berkeley by
51 * may be used to endorse or promote products derived from this software
75 * Block/character interface to a vnode. Allows one to treat a file
78 * NOTE 1: This uses the vnop_blockmap/vnop_strategy interface to the vnode
79 * instead of a simple VOP_RDWR. We do this to avoid distorting the
83 * Once mounted all access to the contents of the "mapped" file via
140 * D_DISK we want to look like a disk
201 static void vn_ioctl_to_64(struct vn_ioctl_32 *from, struct vn_ioctl_64 *to);
310 /* figure out which blocks to read */
367 /* write one block to shadow file at shadow_block offset */
402 /* figure out which blocks to write */
427 /* truncate the file to its new length before write */
441 /* copy the last block to the shadow */
451 printf("vnwrite_shadow: failed to copy"
452 " block %u to shadow block %u\n",
460 /* copy the first block to the shadow */
465 printf("vnwrite_shadow: failed to"
466 " copy block %u to shadow block %u\n",
719 /* truncate the file to its new length before write */
1124 * Attach a file to a VN partition. Return the size in the vn_size
1283 * to this "disk" is essentially as root. Note that credentials may change
1284 * if some other uid can write directly to the mapped file (NFS).
1294 * Horrible kludge to establish credentials for NFS XXX.
1400 vn_ioctl_to_64(struct vn_ioctl_32 *from, struct vn_ioctl_64 *to)
1402 to->vn_file = CAST_USER_ADDR_T(from->vn_file);
1403 to->vn_size = from->vn_size;
1404 to->vn_control = from->vn_control;