Lines Matching +full:fixed +full:- +full:length
1 // SPDX-License-Identifier: GPL-2.0
3 * hugepage-mmap:
8 * like /mnt) using the command mount -t hugetlbfs nodev /mnt. In this
13 * huge pages. That means that if one requires a fixed address, a huge page
14 * aligned address starting with 0x800000... will be required. If a fixed
27 #define LENGTH (256UL*1024*1024) macro
48 for (i = 0; i < LENGTH; i++) in write_bytes()
57 for (i = 0; i < LENGTH; i++) in read_bytes()
73 fd = memfd_create("hugepage-mmap", MFD_HUGETLB); in main()
77 addr = mmap(ADDR, LENGTH, PROTECTION, FLAGS, fd, 0); in main()
88 munmap(addr, LENGTH); in main()