| 237 | } |
| 238 | |
| 239 | int |
| 240 | uiomove_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 | |
| 260 | static u_long count_largepages[MAXPAGESIZES]; |
| 261 |
no test coverage detected