chiark / gitweb /
bus: add APIs for negotiating what is attached to messages
[elogind.git] / src / libsystemd-bus / bus-kernel.h
index ed3f987ccda7af6ca14e6dcdc24fc8a4acf13164..8cf153ab4111d0bc7556a2dd37734cba14431c22 100644 (file)
 #include "sd-bus.h"
 
 #define MEMFD_CACHE_MAX 32
-#define MEMFD_CACHE_ITEM_SIZE_MAX (128*1024)
+
+/* When we cache a memfd block for reuse, we will truncate blocks
+ * longer than this in order not to keep too much data around. */
+#define MEMFD_CACHE_ITEM_SIZE_MAX (32*1024)
+
+/* This determines at which minimum size we prefer sending memfds over
+ * sending vectors */
+#define MEMFD_MIN_SIZE (32*1024)
+
+/* The size of the per-connection memory pool that we set up and where
+ * the kernel places our incoming messages */
+#define KDBUS_POOL_SIZE (16*1024*1024)
 
 struct memfd_cache {
         int fd;