summaryrefslogtreecommitdiff
path: root/include/linux/mqueue.h
diff options
context:
space:
mode:
authorChris Wright <chrisw@osdl.org>2004-06-17 17:56:56 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-06-17 17:56:56 -0700
commitfaaa0febefc3de14da204284d79dd60c59a140b2 (patch)
tree6b9152ba97b51af26908b75bf0c652fa3b57af89 /include/linux/mqueue.h
parentdb49b0f961a5704409acb5145ec7cb134be1b450 (diff)
[PATCH] RLIM: add rlimit entry for POSIX mqueue allocation
Add an rlimit entry to control the maximum number of bytes a user can allocate to a POSIX mqueue. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/mqueue.h')
-rw-r--r--include/linux/mqueue.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mqueue.h b/include/linux/mqueue.h
index fc40b774b913..8db9d75541a6 100644
--- a/include/linux/mqueue.h
+++ b/include/linux/mqueue.h
@@ -21,6 +21,8 @@
#include <linux/types.h>
#define MQ_PRIO_MAX 32768
+/* per-uid limit of kernel memory used by mqueue, in bytes */
+#define MQ_BYTES_MAX 819200
struct mq_attr {
long mq_flags; /* message queue flags */