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

Function uiomove_object

freebsd/kern/uipc_shm.c:239–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239int
240uiomove_object(vm_object_t obj, off_t obj_size, struct uio *uio)
241{
242 ssize_t resid;
243 size_t len;
244 int error;
245
246 error = 0;
247 while ((resid = uio->uio_resid) > 0) {
248 if (obj_size <= uio->uio_offset)
249 break;
250 len = MIN(obj_size - uio->uio_offset, resid);
251 if (len == 0)
252 break;
253 error = uiomove_object_page(obj, len, uio);
254 if (error != 0 || resid == uio->uio_resid)
255 break;
256 }
257 return (error);
258}
259
260static u_long count_largepages[MAXPAGESIZES];
261

Callers 2

shm_readFunction · 0.85
shm_writeFunction · 0.85

Calls 1

uiomove_object_pageFunction · 0.85

Tested by

no test coverage detected