Skip to contentSkip to conversation

Make procfs obligatory except under CONFIG_EMBEDDED

PATCH In review H. Peter Anvin 2 participants 3 messages May 29, 2006 – May 31, 2006 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Make procfs obligatory except under CONFIG_EMBEDDED

From: H. Peter Anvin <[email protected]>

This patch makes procfs non-optional unless EMBEDDED is set, just like sysfs. procfs is already de facto required for a large subset of Linux functionality.

fs/Kconfig +2 -1
index 71d6b30..2c3a733 100644
@@ -764,7 +764,8 @@ endmenu
 menu "Pseudo filesystems"
 
 config PROC_FS
-	bool "/proc file system support"
+	bool "/proc file system support" if EMBEDDED
+	default y
 	help
 	  This is a virtual file system providing information about the status
 	  of the system. "Virtual" means that it doesn't take up any space on
#1 lore raw
Quoted 5 lines · H. Peter Anvin

From: H. Peter Anvin <[email protected]>

This patch makes procfs non-optional unless EMBEDDED is set, just like sysfs. procfs is already de facto required for a large subset of Linux functionality.

I have no objection, but I'm curious why this wasn't done long ago.

Quoted 17 lines
fs/Kconfig +2 -1
index 71d6b30..2c3a733 100644
@@ -764,7 +764,8 @@ endmenu
 menu "Pseudo filesystems"
 
 config PROC_FS
-	bool "/proc file system support"
+	bool "/proc file system support" if EMBEDDED
+	default y
 	help
 	  This is a virtual file system providing information about the status
 	  of the system. "Virtual" means that it doesn't take up any space on
#2 lore raw
Quoted 9 lines · Bill Davidsen
Quoted 5 lines · H. Peter Anvin

From: H. Peter Anvin <[email protected]>

This patch makes procfs non-optional unless EMBEDDED is set, just like sysfs. procfs is already de facto required for a large subset of Linux functionality.

I have no objection, but I'm curious why this wasn't done long ago.

Probably because procfs predates CONFIG_EMBEDDED by many years, and noone really thought about it. Either that or it was part of the "let's switch all of userspace to sysfs, overnight!" conspiracy.

-hpa