Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 May 2009 19:06:05 +0000 (UTC)
From:      Jamie Gritton <jamie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r191792 - head/sys/compat/linux
Message-ID:  <200905041906.n44J662C054379@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jamie
Date: Mon May  4 19:06:05 2009
New Revision: 191792
URL: http://svn.freebsd.org/changeset/base/191792

Log:
  Mark Linux MIB sysctls MPSAFE.
  
  Reviewed by:	dchagin, kib
  Approved by:	bz (mentor)

Modified:
  head/sys/compat/linux/linux_mib.c

Modified: head/sys/compat/linux/linux_mib.c
==============================================================================
--- head/sys/compat/linux/linux_mib.c	Mon May  4 19:00:25 2009	(r191791)
+++ head/sys/compat/linux/linux_mib.c	Mon May  4 19:06:05 2009	(r191792)
@@ -78,7 +78,7 @@ linux_sysctl_osname(SYSCTL_HANDLER_ARGS)
 }
 
 SYSCTL_PROC(_compat_linux, OID_AUTO, osname,
-	    CTLTYPE_STRING | CTLFLAG_RW | CTLFLAG_PRISON,
+	    CTLTYPE_STRING | CTLFLAG_RW | CTLFLAG_PRISON | CTLFLAG_MPSAFE,
 	    0, 0, linux_sysctl_osname, "A",
 	    "Linux kernel OS name");
 
@@ -100,7 +100,7 @@ linux_sysctl_osrelease(SYSCTL_HANDLER_AR
 }
 
 SYSCTL_PROC(_compat_linux, OID_AUTO, osrelease,
-	    CTLTYPE_STRING | CTLFLAG_RW | CTLFLAG_PRISON,
+	    CTLTYPE_STRING | CTLFLAG_RW | CTLFLAG_PRISON | CTLFLAG_MPSAFE,
 	    0, 0, linux_sysctl_osrelease, "A",
 	    "Linux kernel OS release");
 
@@ -121,7 +121,7 @@ linux_sysctl_oss_version(SYSCTL_HANDLER_
 }
 
 SYSCTL_PROC(_compat_linux, OID_AUTO, oss_version,
-	    CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_PRISON,
+	    CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_PRISON | CTLFLAG_MPSAFE,
 	    0, 0, linux_sysctl_oss_version, "I",
 	    "Linux OSS version");
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905041906.n44J662C054379>