Searched refs:PAGE_ALIGN (Results 1 - 15 of 15) sorted by relevance
/systemd/src/coredump/ |
H A D | coredump-vacuum.c | 101 max_use = PAGE_ALIGN(fs_size / 10); /* 10% */ 111 max_use = PAGE_ALIGN(max_use); 119 keep_free = PAGE_ALIGN((fs_size * 3) / 20); /* 15% */ 126 keep_free = PAGE_ALIGN(keep_free);
|
/systemd/src/basic/ |
H A D | mempool.c | 59 size = PAGE_ALIGN(ALIGN(sizeof(struct pool)) + n*mp->tile_size);
|
H A D | util.h | 49 #define PAGE_ALIGN(l) ALIGN_TO((l), page_size()) macro
|
/systemd/src/journal/ |
H A D | journal-authenticate.c | 358 m = mmap(NULL, PAGE_ALIGN(sizeof(FSSHeader)), PROT_READ, MAP_SHARED, fd, 0); 402 f->fss_file = mmap(NULL, PAGE_ALIGN(f->fss_file_size), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); 419 munmap(m, PAGE_ALIGN(sizeof(FSSHeader)));
|
H A D | mmap-cache.c | 523 wsize = PAGE_ALIGN(wsize); 528 delta = PAGE_ALIGN((WINDOW_SIZE - wsize) / 2); 547 wsize = PAGE_ALIGN(st->st_size - woffset);
|
H A D | journal-file.c | 192 munmap(f->fss_file, PAGE_ALIGN(f->fss_file_size)); 397 new_size = PAGE_ALIGN(offset + size); 2825 r = mmap_cache_get(f->mmap, f->fd, f->prot, CONTEXT_HEADER, true, 0, PAGE_ALIGN(sizeof(Header)), &f->last_stat, &h); 3129 m->max_use = PAGE_ALIGN(fs_size / 10); /* 10% of file system size */ 3139 m->max_use = PAGE_ALIGN(m->max_use); 3152 m->max_size = PAGE_ALIGN(m->max_use / 8); /* 8 chunks */ 3157 m->max_size = PAGE_ALIGN(m->max_size); 3170 m->min_size = PAGE_ALIGN(m->min_size); 3182 m->keep_free = PAGE_ALIGN(fs_size * 3 / 20); /* 15% of file system size */
|
H A D | journald-native.c | 390 ps = PAGE_ALIGN(st.st_size);
|
H A D | catalog.c | 567 p = mmap(NULL, PAGE_ALIGN(st.st_size), PROT_READ, MAP_SHARED, fd, 0);
|
H A D | journald-server.c | 1205 m = PAGE_ALIGN(MAX3((size_t) v + 1,
|
/systemd/src/login/ |
H A D | logind-user.c | 878 *sz = PAGE_ALIGN((size_t) ((physical_memory() * (uint64_t) ul) / (uint64_t) 100)); 888 *sz = PAGE_ALIGN((size_t) k);
|
H A D | logind.c | 71 m->runtime_dir_size = PAGE_ALIGN((size_t) (physical_memory() / 10)); /* 10% */
|
/systemd/src/libsystemd/sd-bus/ |
H A D | bus-kernel.c | 1475 assert_se(munmap(address, PAGE_ALIGN(size)) >= 0); 1482 uint64_t max_mapped = PAGE_ALIGN(MEMFD_CACHE_ITEM_SIZE_MAX); 1508 assert_se(munmap((uint8_t*) address + max_mapped, PAGE_ALIGN(mapped - max_mapped)) >= 0);
|
H A D | bus-message.c | 1246 new_allocated = PAGE_ALIGN(sz > 0 ? 2 * sz : 1); 1259 psz = PAGE_ALIGN(sz > 0 ? sz : 1); 3056 psz = PAGE_ALIGN(part->size + shift);
|
/systemd/src/resolve/ |
H A D | resolved-dns-packet.c | 46 a = PAGE_ALIGN(ALIGN(sizeof(DnsPacket)) + a) - ALIGN(sizeof(DnsPacket)); 293 a = PAGE_ALIGN((p->size + add) * 2);
|
/systemd/src/core/ |
H A D | busname.c | 789 sz = PAGE_ALIGN(delta + cmd_recv.msg.msg_size);
|
Completed in 2409 milliseconds