summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_mib.h
diff options
context:
space:
mode:
authornetchild <netchild@FreeBSD.org>2006-12-31 12:39:10 +0000
committernetchild <netchild@FreeBSD.org>2006-12-31 12:39:10 +0000
commit938b19deb7f08d648cbea47aad31cd593e8f79f2 (patch)
tree5f7a66921f13b7a6f4b7bf8ae9af0f639d8d2e9f /sys/compat/linux/linux_mib.h
parente9779a03516fdd2696ca38a5163c7b9d58de9be0 (diff)
downloadFreeBSD-src-938b19deb7f08d648cbea47aad31cd593e8f79f2.zip
FreeBSD-src-938b19deb7f08d648cbea47aad31cd593e8f79f2.tar.gz
MFp4 (111746+):
Redo the checking for 2.6 emulation. We now cache the value of use26 and replace calls to linux_get_osrelease() + parsing with a call to linux_use26(). Typical path is lockless now. Pointed out by: kib This allows to ship RELENG_7_0 with a default osrelease of 2.4.2 and the possibility to enable 2.6.x emulation without the possible performance impact of the previous version of the check. Submitted by: rdivacky
Diffstat (limited to 'sys/compat/linux/linux_mib.h')
-rw-r--r--sys/compat/linux/linux_mib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_mib.h b/sys/compat/linux/linux_mib.h
index 42d9d89..85f61635 100644
--- a/sys/compat/linux/linux_mib.h
+++ b/sys/compat/linux/linux_mib.h
@@ -40,4 +40,6 @@ int linux_set_osrelease(struct thread *td, char *osrelease);
int linux_get_oss_version(struct thread *td);
int linux_set_oss_version(struct thread *td, int oss_version);
+int linux_use26(struct thread *td);
+
#endif /* _LINUX_MIB_H_ */
OpenPOWER on IntegriCloud