aboutsummaryrefslogtreecommitdiff
path: root/sys/compat
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2003-03-26 18:29:44 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2003-03-26 18:29:44 +0000
commit35eb8c5aa20878f727b0143405166e9b463ee24a (patch)
tree8df222945b41b84d620040663b2014b3df286910 /sys/compat
parent0c0bdf85fae6647aee3e29896bb0a2c179f053ff (diff)
Notes
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_mib.c7
-rw-r--r--sys/compat/linux/linux_mib.h2
2 files changed, 9 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_mib.c b/sys/compat/linux/linux_mib.c
index 53fee72d54fe7..9d908745888e9 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;
diff --git a/sys/compat/linux/linux_mib.h b/sys/compat/linux/linux_mib.h
index 42d9d899266b8..b68e57fd32388 100644
--- a/sys/compat/linux/linux_mib.h
+++ b/sys/compat/linux/linux_mib.h
@@ -31,6 +31,8 @@
#ifndef _LINUX_MIB_H_
#define _LINUX_MIB_H_
+void linux_mib_destroy(void);
+
void linux_get_osname(struct thread *td, char *dst);
int linux_set_osname(struct thread *td, char *osname);