X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/3903760236c30e3b5ace7a4eefac3a269d68957c..5c9f46613a83ebfc29a5b1f099448259e96a98f0:/bsd/sys/ubc.h diff --git a/bsd/sys/ubc.h b/bsd/sys/ubc.h index fad05f101..0699b5b03 100644 --- a/bsd/sys/ubc.h +++ b/bsd/sys/ubc.h @@ -114,6 +114,7 @@ int cluster_pagein_ext(vnode_t, upl_t, upl_offset_t, off_t, int, off_t, int, int int cluster_push(vnode_t, int); int cluster_push_ext(vnode_t, int, int (*)(buf_t, void *), void *); +int cluster_push_err(vnode_t, int, int (*)(buf_t, void *), void *, int *); int cluster_bp(buf_t); int cluster_bp_ext(buf_t, int (*)(buf_t, void *), void *); @@ -128,7 +129,9 @@ cl_direct_read_lock_t *cluster_lock_direct_read(vnode_t vp, lck_rw_type_t exclus void cluster_unlock_direct_read(cl_direct_read_lock_t *lck); /* UPL routines */ +#ifndef XNU_KERNEL_PRIVATE int ubc_create_upl(vnode_t, off_t, int, upl_t *, upl_page_info_t **, int); +#endif /* XNU_KERNEL_PRIVATE */ int ubc_upl_map(upl_t, vm_offset_t *); int ubc_upl_unmap(upl_t); int ubc_upl_commit(upl_t); @@ -146,6 +149,11 @@ errno_t mach_to_bsd_errno(kern_return_t mach_err); #ifdef KERNEL_PRIVATE +int ubc_create_upl_external(vnode_t, off_t, int, upl_t *, upl_page_info_t **, int); +#ifdef XNU_KERNEL_PRIVATE +int ubc_create_upl_kernel(vnode_t, off_t, int, upl_t *, upl_page_info_t **, int, vm_tag_t); +#endif /* XNU_KERNEL_PRIVATE */ + __attribute__((pure)) boolean_t ubc_is_mapped(const struct vnode *, boolean_t *writable); __attribute__((pure)) boolean_t ubc_is_mapped_writable(const struct vnode *);