Lines Matching refs:ns
28 struct ipc_namespace *ns; in ipcns_callback() local
37 ns = container_of(self, struct ipc_namespace, ipcns_nb); in ipcns_callback()
47 recompute_msgmni(ns); in ipcns_callback()
56 int register_ipcns_notifier(struct ipc_namespace *ns) in register_ipcns_notifier() argument
60 memset(&ns->ipcns_nb, 0, sizeof(ns->ipcns_nb)); in register_ipcns_notifier()
61 ns->ipcns_nb.notifier_call = ipcns_callback; in register_ipcns_notifier()
62 ns->ipcns_nb.priority = IPCNS_CALLBACK_PRI; in register_ipcns_notifier()
63 rc = blocking_notifier_chain_register(&ipcns_chain, &ns->ipcns_nb); in register_ipcns_notifier()
65 ns->auto_msgmni = 1; in register_ipcns_notifier()
69 int cond_register_ipcns_notifier(struct ipc_namespace *ns) in cond_register_ipcns_notifier() argument
73 memset(&ns->ipcns_nb, 0, sizeof(ns->ipcns_nb)); in cond_register_ipcns_notifier()
74 ns->ipcns_nb.notifier_call = ipcns_callback; in cond_register_ipcns_notifier()
75 ns->ipcns_nb.priority = IPCNS_CALLBACK_PRI; in cond_register_ipcns_notifier()
77 &ns->ipcns_nb); in cond_register_ipcns_notifier()
79 ns->auto_msgmni = 1; in cond_register_ipcns_notifier()
83 void unregister_ipcns_notifier(struct ipc_namespace *ns) in unregister_ipcns_notifier() argument
85 blocking_notifier_chain_unregister(&ipcns_chain, &ns->ipcns_nb); in unregister_ipcns_notifier()
86 ns->auto_msgmni = 0; in unregister_ipcns_notifier()