Home
last modified time | relevance | path

Searched refs:off_t (Results 1 – 25 of 108) sorted by relevance

12345

/xnu-8792.41.9/bsd/sys/
H A Dubc.h57 off_t ubc_blktooff(struct vnode *, daddr64_t);
58 daddr64_t ubc_offtoblk(struct vnode *, off_t);
59 off_t ubc_getsize(struct vnode *);
60 int ubc_setsize(struct vnode *, off_t);
69 errno_t ubc_setsize_ex(vnode_t vp, off_t nsize, ubc_setsize_opts_t opts);
77 errno_t ubc_msync(vnode_t, off_t, off_t, off_t *, int);
79 int ubc_page_op(vnode_t, off_t, int, ppnum_t *, int *);
80 int ubc_range_op(vnode_t, off_t, off_t, int, int *);
87 struct cs_blob *ubc_cs_blob_get(vnode_t, cpu_type_t, cpu_subtype_t, off_t);
88 struct cs_blob *ubc_cs_blob_get_supplement(vnode_t, off_t);
[all …]
H A Dfcntl.h494 off_t l_start; /* starting offset */
495 off_t l_len; /* len = 0 means until end of file */
525 off_t ra_offset;
541 off_t fs_file_start;
558 off_t fs_file_start;
564 off_t fs_file_start; /* offset of Mach-O image in FAT file */
579 off_t fs_file_start; /* offset of Mach-O image in FAT file */
580 off_t fs_blob_start; /* offset of signature in Mach-O image */
592 off_t fs_file_start; /* offset of Mach-O image in FAT file */
593 off_t fs_blob_start; /* offset of signature in Mach-O image */
[all …]
H A Dubc_internal.h91 off_t cl_last_write; /* offset of the end of the last write */
92 off_t cl_seq_written; /* sequentially written bytes */
115 off_t csb_base_offset; /* Offset of Mach-O binary in fat binary */
116 off_t csb_start_offset; /* Blob coverage area start, from csb_base_offset */
117 off_t csb_end_offset; /* Blob coverage area end, from csb_base_offset */
161 off_t ui_size; /* file size for the vnode */
219 int ubc_info_init_withsize(vnode_t, off_t);
225 int ubc_getcdhash(vnode_t, off_t, unsigned char *);
230 int ubc_cs_blob_add(vnode_t, uint32_t, cpu_type_t, cpu_subtype_t, off_t, vm_address_t *, vm_siz…
232 int ubc_cs_blob_add_supplement(vnode_t, vnode_t, off_t, vm_address_t *, vm_size_t, struct cs_bl…
[all …]
H A Duio.h136 off_t a_offset, /* current offset */
148 off_t a_offset, /* current offset */
208 off_t uio_offset( uio_t a_uio );
213 void uio_setoffset( uio_t a_uio, off_t a_offset );
263 ssize_t preadv(int, const struct iovec *, int, off_t) __DARWIN_NOCANCEL(preadv) __API_AVAILABLE(mac…
264 ssize_t pwritev(int, const struct iovec *, int, off_t) __DARWIN_NOCANCEL(pwritev) __API_AVAILABLE(m…
H A Dcodesign.h97 int cs_entitlements_blob_get_vnode(struct vnode *, off_t, void **, size_t *);
98 int cs_entitlements_dictionary_copy_vnode(struct vnode *, off_t, void **);
108 struct cs_blob * csvnode_get_blob(struct vnode *, off_t);
111 off_t csblob_get_base_offset(struct cs_blob *);
167 const char * csvnode_get_teamid(struct vnode *, off_t);
182 const char *csfg_get_identity(struct fileglob *fg, off_t offset);
185 uint8_t csfg_get_platform_identifier(struct fileglob *, off_t);
186 uint8_t csvnode_get_platform_identifier(struct vnode *, off_t);
H A Dvnode_if.h1224 off_t a_length;
1226 off_t *a_bytesallocated;
1227 off_t a_offset;
1255 extern errno_t VNOP_ALLOCATE(vnode_t, off_t, u_int32_t, off_t *, off_t, vfs_context_t);
1263 off_t a_f_offset;
1287 extern errno_t VNOP_PAGEIN(vnode_t, upl_t, upl_offset_t, off_t, size_t, int, vfs_context_t);
1295 off_t a_f_offset;
1327 extern errno_t VNOP_PAGEOUT(vnode_t, upl_t, upl_offset_t, off_t, size_t, int, vfs_context_t);
1541 off_t *a_offset;
1555 extern errno_t VNOP_BLKTOOFF(vnode_t, daddr64_t, off_t *);
[all …]
H A Dimageboot.h47 int imageboot_read_file(const char *path, void **bufp, size_t *bufszp, off_t *fsizep);
48 int imageboot_read_file_from_offset(const char *path, off_t offset, void **bufp, size_t *bufszp…
51 imgboot_get_image_file(const char *path, off_t *fsize, int *errp);
H A Dmman.h260 void * mmap(void *, size_t, int, int, int, off_t) __DARWIN_ALIAS(mmap);
299 struct fileproc *fp, off_t pageoff);
305 int pshm_truncate(struct proc *p, struct fileproc *fp, int fd, off_t length, int32_t *retval);
H A Dlockf.h93 off_t lf_start; /* Byte # of the start of the lock */
94 off_t lf_end; /* Byte # of the end of the lock (-1=EOF) */
H A Dstat.h175 off_t st_size; /* [XSI] file size, in bytes */ \
214 off_t st_size; /* [XSI] file size, in bytes */
263 off_t st_size; /* [XSI] File size, in bytes */
296 off_t st_size; /* [XSI] File size, in bytes */
332 off_t st_size; /* [XSI] file size, in bytes */
364 off_t st_size; /* [XSI] file size, in bytes */
H A Daio.h72 off_t aio_offset; /* File offset */
85 off_t aio_offset; /* File offset */
/xnu-8792.41.9/iokit/IOKit/
H A DIOPolledInterface.h196 off_t write_offset, void * addr, size_t write_length,
197 off_t discard_offset, off_t discard_end, bool unlink);
242 off_t set_file_size,
243 off_t fs_free_size,
244 off_t write_file_offset,
254 off_t write_offset, void * addr, size_t write_length,
255 off_t discard_offset, off_t discard_end, bool unlink);
257 kern_write_file(struct kern_direct_file_io_ref_t * ref, off_t offset, void * addr, size_t len, int …
259 kern_read_file(struct kern_direct_file_io_ref_t * ref, off_t offset, void * addr, size_t len, int i…
/xnu-8792.41.9/bsd/vfs/
H A Dvfs_cluster.c187 static int cluster_io(vnode_t vp, upl_t upl, vm_offset_t upl_offset, off_t f_offset, int non_rounde…
195 static void cluster_syncup(vnode_t vp, off_t newEOF, int (*)(buf_t, void *), void *callback_arg, in…
200 static int cluster_read_copy(vnode_t vp, struct uio *uio, u_int32_t io_req_size, off_t filesize, in…
202 static int cluster_read_direct(vnode_t vp, struct uio *uio, off_t filesize, int *read_type, u_int32…
204 static int cluster_read_contig(vnode_t vp, struct uio *uio, off_t filesize, int *read_type, u_int32…
207 … cluster_write_copy(vnode_t vp, struct uio *uio, u_int32_t io_req_size, off_t oldEOF, off_t newEOF,
208off_t headOff, off_t tailOff, int flags, int (*)(buf_t, void *), void *callback_arg) __attribute__…
209 static int cluster_write_direct(vnode_t vp, struct uio *uio, off_t oldEOF, off_t newEOF,
211 static int cluster_write_contig(vnode_t vp, struct uio *uio, off_t newEOF,
215off_t write_off, int write_cnt, off_t newEOF, int (*callback)(buf_t, void *), void *callback_arg, …
[all …]
/xnu-8792.41.9/bsd/kern/
H A Dkern_symfile.c88 off_t filelength;
112 …octl_file_extents(struct kern_direct_file_io_ref_t * ref, u_long theIoctl, off_t offset, off_t end) in kern_ioctl_file_extents()
211 off_t set_file_size, in kern_open_file_for_direct_io()
212 off_t fs_free_size, in kern_open_file_for_direct_io()
213 off_t write_file_offset, in kern_open_file_for_direct_io()
228 off_t f_offset; in kern_open_file_for_direct_io()
237 off_t maxiocount, count, segcount, wbctotal; in kern_open_file_for_direct_io()
243 off_t mpFree; in kern_open_file_for_direct_io()
635 kern_write_file(struct kern_direct_file_io_ref_t * ref, off_t offset, void * addr, size_t len, int … in kern_write_file()
646 kern_read_file(struct kern_direct_file_io_ref_t * ref, off_t offset, void * addr, size_t len, int i… in kern_read_file()
[all …]
H A Dmach_loader.h87 off_t cs_end_offset;
111 off_t file_offset,
112 off_t macho_size);
H A Dmach_loader.c146 off_t file_offset,
147 off_t macho_size,
161 off_t pager_offset,
162 off_t macho_size,
189 off_t macho_offset,
190 off_t macho_size,
204 off_t macho_offset,
290 off_t file_offset,
291 off_t macho_size);
301 off_t *file_offset,
[all …]
H A Dimageboot.c85 void *ubc_getobject_from_filename(const char *filename, struct vnode **vpp, off_t *file_size);
514 ubc_getobject_from_filename(const char *filename, struct vnode **vpp, off_t *file_size) in ubc_getobject_from_filename()
519 off_t fsize = 0; in ubc_getobject_from_filename()
555 …ead_file_internal(const char *path, const off_t offset, const bool pageable, void **bufp, size_t *… in imageboot_read_file_internal()
562 off_t readsize = 0; in imageboot_read_file_internal()
563 off_t readoff = 0; in imageboot_read_file_internal()
564 off_t fsize = 0; in imageboot_read_file_internal()
662 const off_t chunksize_max = 16 * 1024 * 1024; /* 16 MiB */ in imageboot_read_file_internal()
663 const off_t chunksize = MIN(readsize, chunksize_max); in imageboot_read_file_internal()
723 imageboot_read_file_from_offset(const char *path, const off_t offset, void **bufp, size_t *bufszp) in imageboot_read_file_from_offset()
[all …]
H A Dubc_subr.c106 static int ubc_info_init_internal(struct vnode *vp, int withfsize, off_t filesize);
108 static int ubc_msync_internal(vnode_t, off_t, off_t, off_t *, int, int *);
1080 ubc_info_init_withsize(struct vnode *vp, off_t filesize) in ubc_info_init_withsize()
1115 ubc_info_init_internal(vnode_t vp, int withfsize, off_t filesize) in ubc_info_init_internal()
1270 ubc_setsize_ex(struct vnode *vp, off_t nsize, ubc_setsize_opts_t opts) in ubc_setsize_ex()
1272 off_t osize; /* ui_size before change */ in ubc_setsize_ex()
1273 off_t lastpg, olastpgend, lastoff; in ubc_setsize_ex()
1278 if (nsize < (off_t)0) { in ubc_setsize_ex()
1366 ubc_setsize(vnode_t vp, off_t nsize) in ubc_setsize()
1389 off_t
[all …]
H A Ddecmpfs.c1142 decmpfs_fetch_uncompressed_data(vnode_t vp, decmpfs_cnode *cp, decmpfs_header *hdr, off_t offset, u…
1150 if (offset >= (off_t)hdr->uncompressed_size) {
1255 off_t f_offset = ap->a_f_offset;
1258 off_t uplPos = 0;
1371 off_t max_size = cachedSize - f_offset;
1414 off_t l_uplPos = uplPos;
1415 off_t l_pl_offset = pl_offset;
1496 off_t inval_offset = start_pg * PAGE_SIZE;
1626 off_t uplPos = 0;
1629 off_t curUplPos = 0;
[all …]
/xnu-8792.41.9/bsd/vm/
H A Dvnode_pager.c219 off_t offset, in vnode_trim()
225 off_t current_offset = offset; in vnode_trim()
352 if ((error_ret = VNOP_PAGEOUT(vp, upl, upl_offset, (off_t)f_offset, in vnode_pageout()
378 if ((error_ret = VNOP_PAGEOUT(vp, NULL, upl_offset, (off_t)f_offset, in vnode_pageout()
448 error = nfs_buf_page_inval(vp, (off_t)f_offset); in vnode_pageout()
450 blkno = ubc_offtoblk(vp, (off_t)f_offset); in vnode_pageout()
502 error = nfs_buf_page_inval(vp, (off_t)f_offset); in vnode_pageout()
504 blkno = ubc_offtoblk(vp, (off_t)f_offset); in vnode_pageout()
541 if ((error = VNOP_PAGEOUT(vp, upl, offset, (off_t)f_offset, in vnode_pageout()
648 if ((error = VNOP_PAGEIN(vp, NULL, upl_offset, (off_t)f_offset, in vnode_pagein()
[all …]
/xnu-8792.41.9/bsd/dev/
H A Dmem.c104 extern boolean_t kernacc(off_t, size_t );
284 off_t start, in kernacc()
288 off_t base; in kernacc()
289 off_t end; in kernacc()
/xnu-8792.41.9/libsyscall/wrappers/unix03/
H A Dmmap.c34 void *__mmap(void *addr, size_t len, int prot, int flags, int fildes, off_t off);
43 mmap(void *addr, size_t len, int prot, int flags, int fildes, off_t off) in mmap()
/xnu-8792.41.9/tests/
H A Dextended_getdirentries64.c13 ssize_t __getdirentries64(int fd, void *buf, size_t bufsize, off_t *basep);
20 off_t offset;
/xnu-8792.41.9/libkern/libkern/apple_encrypted_archive/
H A Dapple_encrypted_archive.h42 off_t offset);
48 off_t offset);
/xnu-8792.41.9/osfmk/kern/
H A Darcade.c59 extern off_t proc_getexecutableoffset(struct proc *p);
261 off_t offset, in __MAKING_UPCALL_TO_ARCADE_VALIDATION_SERVICE__()
304 off_t offset; in arcade_ast()

12345