Lines Matching refs:upl
58 #include <mach/upl.h>
519 * of the file will require modification or use of an existing upl
566 upl_t upl;
575 kret = ubc_create_upl(vp, lastpg, PAGE_SIZE, &upl, &pl, UPL_SET_LITE);
581 cluster_zero(upl, (uint32_t)lastoff, PAGE_SIZE - (uint32_t)lastoff, NULL);
583 ubc_upl_abort_range(upl, 0, PAGE_SIZE, UPL_ABORT_FREE_ON_EMPTY);
1703 * Parameters: vp The vnode from which to create the upl
1706 * bufsize The size of the upl to create
1708 * created upl; MUST NOT be NULL
1710 * list for the created upl; MAY be NULL
1713 * Returns: KERN_SUCCESS The requested upl has been created
1794 * Map the page list assocated with the supplied upl into the kernel virtual
1796 * the entire upl is mapped
1798 * Parameters: upl The upl to map
1799 * dst_addr The address at which to map the upl
1801 * Returns: KERN_SUCCESS The upl has been mapped
1802 * KERN_INVALID_ARGUMENT The upl is UPL_NULL
1803 * KERN_FAILURE The upl is already mapped
1810 upl_t upl,
1813 return (vm_upl_map(kernel_map, upl, dst_addr));
1820 * Unmap the page list assocated with the supplied upl from the kernel virtual
1821 * address space; the entire upl is unmapped.
1823 * Parameters: upl The upl to unmap
1825 * Returns: KERN_SUCCESS The upl has been unmapped
1826 * KERN_FAILURE The upl is not currently mapped
1827 * KERN_INVALID_ARGUMENT If the upl is UPL_NULL
1831 upl_t upl)
1833 return(vm_upl_unmap(kernel_map, upl));
1840 * Commit the contents of the upl to the backing store
1842 * Parameters: upl The upl to commit
1844 * Returns: KERN_SUCCESS The upl has been committed
1845 * KERN_INVALID_ARGUMENT The supplied upl was UPL_NULL
1846 * KERN_FAILURE The supplied upl does not represent
1849 * the upl
1853 * since the upl is deallocated regardless of success or failure,
1862 upl_t upl)
1867 pl = UPL_GET_INTERNAL_PAGE_LIST(upl);
1868 kr = upl_commit(upl, pl, MAX_UPL_SIZE);
1869 upl_deallocate(upl);
1877 * Commit the contents of the specified range of the upl to the backing store
1879 * Parameters: upl The upl to commit
1880 * offset The offset into the upl
1886 * KERN_INVALID_ARGUMENT The supplied upl was UPL_NULL
1887 * KERN_FAILURE The supplied upl does not represent
1890 * the upl
1893 * empty, the upl will be deallocated. Since the caller cannot
1896 * is equal to the upl size.
1899 * the upl to be committed; allowable flags are:
1901 * o UPL_COMMIT_FREE_ON_EMPTY Free the upl when it is
1928 upl_t upl,
1944 pl = UPL_GET_INTERNAL_PAGE_LIST(upl);
1946 kr = upl_commit_range(upl, offset, size, flags,
1950 upl_deallocate(upl);
1959 * Abort the contents of the specified range of the specified upl
1961 * Parameters: upl The upl to abort
1962 * offset The offset into the upl
1968 * KERN_INVALID_ARGUMENT The supplied upl was UPL_NULL
1969 * KERN_FAILURE The supplied upl does not represent
1972 * the upl
1975 * empty, the upl will be deallocated. Since the caller cannot
1978 * is equal to the upl size.
1981 * pages in the upl to be aborted; allowable flags are:
1983 * o UPL_ABORT_FREE_ON_EMPTY Free the upl when it is both
2003 upl_t upl,
2014 kr = upl_abort_range(upl, offset, size, abort_flags, &empty);
2017 upl_deallocate(upl);
2026 * Abort the contents of the specified upl
2028 * Parameters: upl The upl to abort
2032 * KERN_INVALID_ARGUMENT The supplied upl was UPL_NULL
2033 * KERN_FAILURE The supplied upl does not represent
2036 * the upl
2039 * empty, the upl will be deallocated. Since the caller cannot
2042 * is equal to the upl size.
2045 * pages in the upl to be aborted; allowable flags are:
2047 * o UPL_ABORT_FREE_ON_EMPTY Free the upl when it is both
2067 upl_t upl,
2072 kr = upl_abort(upl, abort_type);
2073 upl_deallocate(upl);
2081 * Retrieve the internal page list for the specified upl
2083 * Parameters: upl The upl to obtain the page list from
2086 * list internal to the upl
2098 upl_t upl)
2100 return (UPL_GET_INTERNAL_PAGE_LIST(upl));