Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103064060
D25556.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
839 B
Referenced Files
None
Subscribers
None
D25556.diff
View Options
Index: head/sys/compat/linprocfs/linprocfs.c
===================================================================
--- head/sys/compat/linprocfs/linprocfs.c
+++ head/sys/compat/linprocfs/linprocfs.c
@@ -1414,6 +1414,17 @@
}
/*
+ * Filler function for proc/sys/kernel/tainted
+ */
+static int
+linprocfs_dotainted(PFS_FILL_ARGS)
+{
+
+ sbuf_printf(sb, "0\n");
+ return (0);
+}
+
+/*
* Filler function for proc/sys/vm/min_free_kbytes
*
* This mirrors the approach in illumos to return zero for reads. Effectively,
@@ -1814,6 +1825,8 @@
pfs_create_file(dir, "pid_max", &linprocfs_dopid_max,
NULL, NULL, NULL, PFS_RD);
pfs_create_file(dir, "sem", &linprocfs_dosem,
+ NULL, NULL, NULL, PFS_RD);
+ pfs_create_file(dir, "tainted", &linprocfs_dotainted,
NULL, NULL, NULL, PFS_RD);
/* /proc/sys/kernel/random/... */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 21, 11:15 AM (20 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14760441
Default Alt Text
D25556.diff (839 B)
Attached To
Mode
D25556: Add /proc/sys/kernel/tainted to linprocfs
Attached
Detach File
Event Timeline
Log In to Comment