示例#1
0
static int sysctl_ipc_registered_data(ctl_table *table,
		void __user *oldval, size_t __user *oldlenp,
		void __user *newval, size_t newlen)
{
	int rc;

	rc = sysctl_ipc_data(table, oldval, oldlenp, newval, newlen);

	if (newval && newlen && rc > 0)
		/*
		 * Tunable has successfully been changed from userland
		 */
		unregister_ipcns_notifier(current->nsproxy->ipc_ns);

	return rc;
}
示例#2
0
文件: ipc_sysctl.c 项目: 274914765/C
static int sysctl_ipc_registered_data(ctl_table *table, int __user *name,
        int nlen, void __user *oldval, size_t __user *oldlenp,
        void __user *newval, size_t newlen)
{
    int rc;

    rc = sysctl_ipc_data(table, name, nlen, oldval, oldlenp, newval,
        newlen);

    if (newval && newlen && rc > 0) {
        /*
         * Tunable has successfully been changed from userland
         */
        int *data = get_ipc(table);

        tunable_set_callback(*data);
    }

    return rc;
}