]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/sys/ubc.h
xnu-4570.31.3.tar.gz
[apple/xnu.git] / bsd / sys / ubc.h
index fad05f10143798a484230b6966da5718bf27764f..0699b5b0312065a458570f713cafe81b2775d513 100644 (file)
@@ -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 *);