MCPcopy Create free account
hub / github.com/F-Stack/f-stack / cvm_page_contiguous_segment

Function cvm_page_contiguous_segment

freebsd/opencrypto/criov.c:180–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180static inline void *
181cvm_page_contiguous_segment(vm_page_t *pages, size_t skip, int len)
182{
183 if ((skip + len - 1) / PAGE_SIZE > skip / PAGE_SIZE)
184 return (NULL);
185
186 pages += (skip / PAGE_SIZE);
187 skip -= rounddown(skip, PAGE_SIZE);
188 return (((char *)PHYS_TO_DMAP(VM_PAGE_TO_PHYS(*pages))) + skip);
189}
190
191/*
192 * Copy len bytes of data from the vm_page_t array, skipping the first off

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected