]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/linux/ipc_namespace.h
ipc: optimize semget/shmget/msgget for lots of keys
[linux.git] / include / linux / ipc_namespace.h
index e81445cc7c5788c1abd7802121efdd43ca3e1410..83f0bf7a587d55c5e7f7d46d4e239b36c1b3c289 100644 (file)
@@ -8,15 +8,18 @@
 #include <linux/nsproxy.h>
 #include <linux/ns_common.h>
 #include <linux/refcount.h>
+#include <linux/rhashtable.h>
 
 struct user_namespace;
 
 struct ipc_ids {
        int in_use;
        unsigned short seq;
+       bool tables_initialized;
        struct rw_semaphore rwsem;
        struct idr ipcs_idr;
        int next_id;
+       struct rhashtable key_ht;
 };
 
 struct ipc_namespace {