summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_mib.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-03-26 18:29:44 +0000
committerjhb <jhb@FreeBSD.org>2003-03-26 18:29:44 +0000
commit72a1a2619caba266ac8c65f94a7a2a271537ccfe (patch)
tree8df222945b41b84d620040663b2014b3df286910 /sys/compat/linux/linux_mib.c
parentea2de33c6b4550c7150502ddb8a80e975c5e09ab (diff)
downloadFreeBSD-src-72a1a2619caba266ac8c65f94a7a2a271537ccfe.zip
FreeBSD-src-72a1a2619caba266ac8c65f94a7a2a271537ccfe.tar.gz
Add a cleanup function to destroy the osname_lock and call it on module
unload. Submitted by: gallatin Reported by: Martin Karlsson <mk-freebsd@bredband.net>
Diffstat (limited to 'sys/compat/linux/linux_mib.c')
-rw-r--r--sys/compat/linux/linux_mib.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_mib.c b/sys/compat/linux/linux_mib.c
index 53fee72..9d90874 100644
--- a/sys/compat/linux/linux_mib.c
+++ b/sys/compat/linux/linux_mib.c
@@ -149,6 +149,13 @@ linux_get_prison(struct thread *td)
}
void
+linux_mib_destroy(void)
+{
+
+ mtx_destroy(&osname_lock);
+}
+
+void
linux_get_osname(struct thread *td, char *dst)
{
register struct prison *pr;
OpenPOWER on IntegriCloud