X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=ipc%2Fmsgutil.c;h=f095ee26883333fcc69d7c32e907a8f1949e2f3f;hb=586fac13f8685bf9dfb32e1ee98bfb14f0dd0061;hp=c82c215693d7c9c54ae93dfa90d7f162085900d5;hpb=3be11c8f4f2fa194834c2e83540f34da442b8977;p=karo-tx-linux.git diff --git a/ipc/msgutil.c b/ipc/msgutil.c index c82c215693d7..f095ee268833 100644 --- a/ipc/msgutil.c +++ b/ipc/msgutil.c @@ -13,10 +13,29 @@ #include #include #include +#include #include #include "util.h" +DEFINE_SPINLOCK(mq_lock); + +/* + * The next 2 defines are here bc this is the only file + * compiled when either CONFIG_SYSVIPC and CONFIG_POSIX_MQUEUE + * and not CONFIG_IPC_NS. + */ +struct ipc_namespace init_ipc_ns = { + .count = ATOMIC_INIT(1), +#ifdef CONFIG_POSIX_MQUEUE + .mq_queues_max = DFLT_QUEUESMAX, + .mq_msg_max = DFLT_MSGMAX, + .mq_msgsize_max = DFLT_MSGSIZEMAX, +#endif +}; + +atomic_t nr_ipc_ns = ATOMIC_INIT(1); + struct msg_msgseg { struct msg_msgseg* next; /* the next part of the message follows immediately */