Lines Matching refs:mmap
60 addr = mmap(0, 256 * 1024 * 1024, PROT_READ,
71 /* mmap using normal pages and a low memory address */
72 addr = mmap((void *)low_addr, page_sz, PROT_READ,
75 tst_brk(TBROK | TERRNO, "mmap failed on nfildes");
83 /* Attempt to mmap a huge page into a low memory address */
84 addr2 = mmap((void *)low_addr2, map_sz, PROT_READ | PROT_WRITE,
88 tst_res(TFAIL | TERRNO, "huge mmap failed unexpectedly"
91 tst_res(TPASS, "huge mmap succeeded (64-bit)");
95 tst_res(TFAIL | TERRNO, "huge mmap failed unexpectedly"
99 "huge mmap failed to test the scenario");
101 tst_res(TPASS, "huge mmap succeeded (32-bit)");