Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys add hashdone() - frees memory previously allocated via h...
details: https://anonhg.NetBSD.org/src/rev/c691304aafae
branches: trunk
changeset: 483724:c691304aafae
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Thu Mar 16 17:19:53 2000 +0000
description:
add hashdone() - frees memory previously allocated via hashinit()
diffstat:
sys/kern/kern_subr.c | 13 ++++++++++++-
sys/sys/systm.h | 3 ++-
2 files changed, 14 insertions(+), 2 deletions(-)
diffs (44 lines):
diff -r 6ac5ba7bb7fa -r c691304aafae sys/kern/kern_subr.c
--- a/sys/kern/kern_subr.c Thu Mar 16 16:48:59 2000 +0000
+++ b/sys/kern/kern_subr.c Thu Mar 16 17:19:53 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_subr.c,v 1.60 2000/03/01 03:51:29 enami Exp $ */
+/* $NetBSD: kern_subr.c,v 1.61 2000/03/16 17:19:53 jdolecek Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
@@ -237,6 +237,17 @@
}
/*
+ * Free memory from hash table previosly allocated via hashinit().
+ */
+void
+hashdone(hashtbl, type)
+ void *hashtbl;
+ int type;
+{
+ free(hashtbl, type);
+}
+
+/*
* "Shutdown hook" types, functions, and variables.
*/
diff -r 6ac5ba7bb7fa -r c691304aafae sys/sys/systm.h
--- a/sys/sys/systm.h Thu Mar 16 16:48:59 2000 +0000
+++ b/sys/sys/systm.h Thu Mar 16 17:19:53 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: systm.h,v 1.103 2000/02/20 19:32:28 sommerfeld Exp $ */
+/* $NetBSD: systm.h,v 1.104 2000/03/16 17:19:54 jdolecek Exp $ */
/*-
* Copyright (c) 1982, 1988, 1991, 1993
@@ -160,6 +160,7 @@
int seltrue __P((dev_t dev, int events, struct proc *p));
void *hashinit __P((int count, int type, int flags, u_long *hashmask));
+void hashdone __P((void *hashtbl, int type));
int sys_nosys __P((struct proc *, void *, register_t *));
Home |
Main Index |
Thread Index |
Old Index