Lines Matching refs:length
49 static void write_bytes(char *addr, size_t length) in write_bytes() argument
53 for (i = 0; i < length; i++) in write_bytes()
57 static int read_bytes(char *addr, size_t length) in read_bytes() argument
62 for (i = 0; i < length; i++) in read_bytes()
75 size_t length = LENGTH; in main() local
81 if (hugepage_size > length) in main()
82 length = hugepage_size; in main()
85 length = atol(argv[1]) << 20; in main()
96 printf("Mapping %lu Mbytes\n", (unsigned long)length >> 20); in main()
98 addr = mmap(ADDR, length, PROTECTION, flags, -1, 0); in main()
106 write_bytes(addr, length); in main()
107 ret = read_bytes(addr, length); in main()
110 if (munmap(addr, length)) { in main()