Lines Matching defs:offset
27 static int map_mem(char *path, off_t offset, size_t length, int touch)
45 addr = mmap(NULL, length, PROT_READ|PROT_WRITE, MAP_SHARED, fd, offset);
65 static int scan_tree(char *path, char *file, off_t offset, size_t length, int touch)
92 rc = map_mem(path2, offset, length, touch);
94 fprintf(stderr, "PASS: %s 0x%lx-0x%lx is %s\n", path2, offset, offset + length, touch ? "readable" : "mappable");
96 fprintf(stderr, "PASS: %s 0x%lx-0x%lx not mappable\n", path2, offset, offset + length);
98 fprintf(stderr, "FAIL: %s 0x%lx-0x%lx not accessible\n", path2, offset, offset + length);
104 rc = scan_tree(path2, file, offset, length, touch);