Lines Matching refs:read
165 * If we allocate a 2 MB superpage read-write without specifying an address,
208 * If we allocate a superpage of any size read-write without specifying an address
234 * If we allocate a 2 MB superpage read-write at a 2 MB aligned address,
260 * If we allocate a 2 MB superpage read-write at an unaligned address,
524 /* read kernel into superpage */
525 if ((bytes = read(fd, (void*)(uintptr_t)addr1, SUPERPAGE_SIZE)) < SUPERPAGE_SIZE) {
526 sprintf(error, "short read (1)");
530 /* read kernel into base pages */
531 if ((bytes = read(fd, (void*)(uintptr_t)addr2, SUPERPAGE_SIZE)) < SUPERPAGE_SIZE) {
532 sprintf(error, "short read (2)");
539 sprintf(error, "read data corrupt");