Lines Matching full:pagesize

34 static size_t pagesize;
46 return __builtin_ctzll(size / pagesize);
67 kb = (pagesize >> 10) << i;
102 for (; size; addr += pagesize, size -= pagesize)
746 mem = mmap(NULL, pagesize, PROT_READ | PROT_WRITE,
753 ret = madvise(mem, pagesize, MADV_NOHUGEPAGE);
761 memset(mem, 0, pagesize);
764 madvise(mem, pagesize, MADV_PAGEOUT);
771 fn(mem, pagesize, false);
773 munmap(mem, pagesize);
828 if (!pagemap_is_populated(pagemap_fd, mem + thpsize - pagesize)) {
847 ret = mprotect(mem + pagesize, pagesize, PROT_READ);
852 ret = mprotect(mem + pagesize, pagesize, PROT_READ | PROT_WRITE);
864 ret = madvise(mem + pagesize, thpsize - pagesize, MADV_DONTNEED);
869 size = pagesize;
897 ret = madvise(mem + pagesize, thpsize - pagesize, MADV_DONTFORK);
911 ret = madvise(mem + pagesize, thpsize - pagesize, MADV_DOFORK);
1237 ret = mprotect(mem + pagesize, pagesize, PROT_READ);
1242 ret = mprotect(mem + pagesize, pagesize, PROT_READ | PROT_WRITE);
1477 mem = mmap(NULL, pagesize, PROT_READ | PROT_WRITE,
1484 smem = mmap(NULL, pagesize, PROT_READ, MAP_PRIVATE | MAP_ANON, -1, 0);
1494 fn(mem, smem, pagesize);
1496 munmap(mem, pagesize);
1498 munmap(smem, pagesize);
1547 if (!pagemap_is_populated(pagemap_fd, mem + pagesize) ||
1548 !pagemap_is_populated(pagemap_fd, smem + pagesize)) {
1574 if (fallocate(fd, 0, 0, pagesize)) {
1580 mem = mmap(NULL, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
1585 smem = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, fd, 0);
1595 fn(mem, smem, pagesize);
1597 munmap(mem, pagesize);
1599 munmap(smem, pagesize);
1625 if (fallocate(fd, 0, 0, pagesize)) {
1631 mem = mmap(NULL, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
1636 smem = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, fd, 0);
1646 fn(mem, smem, pagesize);
1648 munmap(mem, pagesize);
1650 munmap(smem, pagesize);
1779 pagesize = getpagesize();