Searched refs:page_size (Results 1 – 14 of 14) sorted by relevance
/systemd-251/src/test/ |
D | test-sigbus.c | 39 assert_se(posix_fallocate_loop(fd, 0, page_size() * 8) >= 0); in main() 41 p = mmap(NULL, page_size() * 16, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in main() 49 p[page_size()] = 0xFF; in main() 52 p[page_size()*8] = 0xFF; in main() 53 p[page_size()*8+1] = 0xFF; in main() 54 p[page_size()*10] = 0xFF; in main() 56 assert_se(addr == p + page_size() * 8); in main() 58 assert_se(addr == p + page_size() * 10); in main()
|
D | test-util.c | 166 assert_se(p % page_size() == 0); in TEST() 182 log_info("Page size: %zu", page_size()); in TEST() 185 assert_se(page_size()/2 + physical_memory_scale(50, 100) - p/2 <= page_size()); in TEST() 194 assert_se(page_size()/2 + physical_memory_scale(1, 2) - p/2 <= page_size()); in TEST()
|
D | test-seccomp.c | 611 p = mmap(NULL, page_size(), PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1,0); in TEST() 613 assert_se(munmap(p, page_size()) >= 0); in TEST() 615 p = mmap(NULL, page_size(), PROT_WRITE|PROT_READ, MAP_PRIVATE|MAP_ANONYMOUS, -1,0); in TEST() 617 assert_se(munmap(p, page_size()) >= 0); in TEST() 621 p = mmap(NULL, page_size(), PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1,0); in TEST() 629 assert_se(munmap(p, page_size()) == 0); in TEST() 631 p = mmap(NULL, page_size(), PROT_WRITE|PROT_READ, MAP_PRIVATE|MAP_ANONYMOUS, -1,0); in TEST() 633 assert_se(munmap(p, page_size()) >= 0); in TEST() 673 shmid = shmget(IPC_PRIVATE, page_size(), 0); in TEST()
|
D | test-sleep.c | 68 (uint64_t) (fiemap->fm_extents[0].fe_physical / page_size())); in test_fiemap_one()
|
/systemd-251/src/basic/ |
D | sigbus.c | 96 ul = ul / page_size(); in sigbus_handler() 97 ul = ul * page_size(); in sigbus_handler() 105 …assert_se(mmap(aligned, page_size(), PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED, -1… in sigbus_handler() 116 (void) page_size(); in sigbus_install()
|
D | memory-util.h | 13 size_t page_size(void) _pure_; 14 #define PAGE_ALIGN(l) ALIGN_TO((l), page_size()) 15 #define PAGE_ALIGN_DOWN(l) ((l) & ~(page_size() - 1)) 16 #define PAGE_OFFSET(l) ((l) & (page_size() - 1))
|
D | limits-util.c | 30 ps = page_size(); in physical_memory() 95 ps = page_size(); in physical_memory_scale()
|
D | memory-util.c | 7 size_t page_size(void) { in page_size() function
|
D | fileio.c | 462 size = MIN3(page_size() - 1, READ_VIRTUAL_BYTES_MAX, max_size); in read_virtual_file_fd()
|
/systemd-251/src/libsystemd/sd-journal/ |
D | mmap-cache.c | 72 # define WINDOW_SIZE (page_size()) 384 woffset = offset & ~((uint64_t) page_size() - 1ULL); in add_mmap()
|
/systemd-251/src/libsystemd/sd-netlink/ |
D | netlink-util.c | 497 if (message_length > MIN(page_size(), 8192UL)) in rtattr_append_attribute()
|
D | netlink-message.c | 191 if (message_length > MIN(page_size(), 8192UL)) in add_rtattr()
|
/systemd-251/src/shared/ |
D | sleep-config.c | 263 *ret_offset = fiemap->fm_extents[0].fe_physical / page_size(); in calculate_swap_file_offset()
|
/systemd-251/src/coredump/ |
D | coredump.c | 368 if (rlimit < page_size()) in save_external_coredump()
|