]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/linux/ipc_namespace.h
ipc/mqueue: cleanup definition names and locations
[karo-tx-linux.git] / include / linux / ipc_namespace.h
index 8a297a5e794cc8e51c22351098b80a35ce43ef09..1372b566e1e13abba37c9c1110887c4aa7a6533e 100644 (file)
@@ -91,10 +91,15 @@ static inline void shm_destroy_orphaned(struct ipc_namespace *ns) {}
 #ifdef CONFIG_POSIX_MQUEUE
 extern int mq_init_ns(struct ipc_namespace *ns);
 /* default values */
+#define MIN_QUEUESMAX  1
 #define DFLT_QUEUESMAX 256     /* max number of message queues */
+#define HARD_QUEUESMAX 1024
+#define MIN_MSGMAX     1
 #define DFLT_MSGMAX    10      /* max number of messages in each queue */
 #define HARD_MSGMAX    (32768*sizeof(void *)/4)
+#define MIN_MSGSIZEMAX  128
 #define DFLT_MSGSIZEMAX 8192   /* max message size */
+#define HARD_MSGSIZEMAX (8192*128)
 #else
 static inline int mq_init_ns(struct ipc_namespace *ns) { return 0; }
 #endif