Searched refs:PAGE_ALIGN (Results 1 - 15 of 15) sorted by relevance

/systemd/src/coredump/
H A Dcoredump-vacuum.c101 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 Dmempool.c59 size = PAGE_ALIGN(ALIGN(sizeof(struct pool)) + n*mp->tile_size);
H A Dutil.h49 #define PAGE_ALIGN(l) ALIGN_TO((l), page_size()) macro
/systemd/src/journal/
H A Djournal-authenticate.c358 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 Dmmap-cache.c523 wsize = PAGE_ALIGN(wsize);
528 delta = PAGE_ALIGN((WINDOW_SIZE - wsize) / 2);
547 wsize = PAGE_ALIGN(st->st_size - woffset);
H A Djournal-file.c192 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 Djournald-native.c390 ps = PAGE_ALIGN(st.st_size);
H A Dcatalog.c567 p = mmap(NULL, PAGE_ALIGN(st.st_size), PROT_READ, MAP_SHARED, fd, 0);
H A Djournald-server.c1205 m = PAGE_ALIGN(MAX3((size_t) v + 1,
/systemd/src/login/
H A Dlogind-user.c878 *sz = PAGE_ALIGN((size_t) ((physical_memory() * (uint64_t) ul) / (uint64_t) 100));
888 *sz = PAGE_ALIGN((size_t) k);
H A Dlogind.c71 m->runtime_dir_size = PAGE_ALIGN((size_t) (physical_memory() / 10)); /* 10% */
/systemd/src/libsystemd/sd-bus/
H A Dbus-kernel.c1475 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 Dbus-message.c1246 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 Dresolved-dns-packet.c46 a = PAGE_ALIGN(ALIGN(sizeof(DnsPacket)) + a) - ALIGN(sizeof(DnsPacket));
293 a = PAGE_ALIGN((p->size + add) * 2);
/systemd/src/core/
H A Dbusname.c789 sz = PAGE_ALIGN(delta + cmd_recv.msg.msg_size);

Completed in 2409 milliseconds