Skip to contentSkip to conversation

Documentation: ABI: /sys/devices/system/cpu/cpu#/online

PATCH New Alex Chiang 1 participant 1 message Nov 16, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation: ABI: /sys/devices/system/cpu/cpu#/online

Add documentation for CPU hotplug interface.

---
I forgot to send this patch in the last round of documentation updates, and wanted to send it before it gets misplaced. ;)

---

Documentation/ABI/testing/sysfs-devices-system-cpu +18 -1
index a703b9e..5aace16 100644
@@ -62,7 +62,6 @@ Description:	CPU topology files that describe kernel limits related to
 		See Documentation/cputopology.txt for more information.
 
 
-
 What:		/sys/devices/system/cpu/cpu#/node
 Date:		October 2009
 Contact:	Linux memory management mailing list <[email protected]>
@@ -77,6 +76,24 @@ Description:	Discover NUMA node a CPU belongs to
 		/sys/devices/system/cpu/cpu42/node2 -> ../../node/node2
 
 
+What:		/sys/devices/system/cpu/cpu#/online
+Date:		January 2006
+Contact:	Linux kernel mailing list <[email protected]>
+Description:	Discover and change the online state of a CPU.
+
+		To discover the state:
+
+		cat /sys/devices/system/cpu/cpu#/online
+
+		A value of 0 indicates the CPU is offline. A value of 1
+		indicates it is online. To change the state, echo the
+		desired new state into the file:
+
+		echo [0|1] > /sys/devices/system/cpu/$cpu/online
+
+		For more information, please read Documentation/cpu-hotplug.txt
+
+
 What:		/sys/devices/system/cpu/cpu#/topology/core_id
 		/sys/devices/system/cpu/cpu#/topology/core_siblings
 		/sys/devices/system/cpu/cpu#/topology/core_siblings_list