Lines Matching refs:mapped
1430 int bus_kernel_pop_memfd(sd_bus *bus, void **address, size_t *mapped, size_t *allocated) {
1435 assert(mapped);
1453 *mapped = 0;
1461 assert(c->mapped == 0 || c->address);
1464 *mapped = c->mapped;
1480 void bus_kernel_push_memfd(sd_bus *bus, int fd, void *address, size_t mapped, size_t allocated) {
1485 assert(mapped == 0 || address);
1488 close_and_munmap(fd, address, mapped);
1497 close_and_munmap(fd, address, mapped);
1506 if (mapped > max_mapped) {
1508 assert_se(munmap((uint8_t*) address + max_mapped, PAGE_ALIGN(mapped - max_mapped)) >= 0);
1509 c->mapped = c->allocated = max_mapped;
1511 c->mapped = mapped;
1524 close_and_munmap(b->memfd_cache[i].fd, b->memfd_cache[i].address, b->memfd_cache[i].mapped);