Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys Another xxxfini() routine.



details:   https://anonhg.NetBSD.org/src/rev/38294eaf81f2
branches:  trunk
changeset: 338156:38294eaf81f2
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Wed May 13 01:23:10 2015 +0000

description:
Another xxxfini() routine.

diffstat:

 sys/kern/sysv_ipc.c |  12 ++++++++++--
 sys/sys/ipc.h       |   3 ++-
 2 files changed, 12 insertions(+), 3 deletions(-)

diffs (50 lines):

diff -r 9ee011eed2fe -r 38294eaf81f2 sys/kern/sysv_ipc.c
--- a/sys/kern/sysv_ipc.c       Wed May 13 01:16:15 2015 +0000
+++ b/sys/kern/sysv_ipc.c       Wed May 13 01:23:10 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysv_ipc.c,v 1.26 2015/05/10 07:41:15 pgoyette Exp $   */
+/*     $NetBSD: sysv_ipc.c,v 1.27 2015/05/13 01:23:10 pgoyette Exp $   */
 
 /*-
  * Copyright (c) 1998, 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysv_ipc.c,v 1.26 2015/05/10 07:41:15 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysv_ipc.c,v 1.27 2015/05/13 01:23:10 pgoyette Exp $");
 
 #include "opt_sysv.h"
 #include "opt_compat_netbsd.h"
@@ -152,6 +152,14 @@
 }
 
 void
+sysvipcfini(void)
+{
+
+       KASSERT(sysvipc_listener != NULL);
+       kauth_unlisten_scope(sysvipc_listener);
+}
+
+void
 sysvipcinit(void)
 {
 
diff -r 9ee011eed2fe -r 38294eaf81f2 sys/sys/ipc.h
--- a/sys/sys/ipc.h     Wed May 13 01:16:15 2015 +0000
+++ b/sys/sys/ipc.h     Wed May 13 01:23:10 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipc.h,v 1.34 2015/05/10 07:41:16 pgoyette Exp $        */
+/*     $NetBSD: ipc.h,v 1.35 2015/05/13 01:23:10 pgoyette Exp $        */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -115,6 +115,7 @@
 int    ipcperm(struct kauth_cred *, struct ipc_perm *, int);
 
 void   sysvipcinit(void);
+void   sysvipcfini(void);
 
 /*
  * sysctl helper routine for kern.ipc.sysvipc_info subtree.



Home | Main Index | Thread Index | Old Index