1 /* SPDX-License-Identifier: LGPL-2.1+ */
9 #define MEMFD_CACHE_MAX 32
11 /* When we cache a memfd block for reuse, we will truncate blocks
12 * longer than this in order not to keep too much data around. */
13 #define MEMFD_CACHE_ITEM_SIZE_MAX (128*1024)
15 /* This determines at which minimum size we prefer sending memfds over
17 #define MEMFD_MIN_SIZE (512*1024)
26 #if 0 /// UNNEEDED by elogind
28 void close_and_munmap(int fd, void *address, size_t size);
29 void bus_flush_memfd(sd_bus *bus);
30 #if 0 /// UNNEEDED by elogind