hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/Documentation/ABI/testing/sysfs-devices-memory
....@@ -26,8 +26,9 @@
2626 Contact: Badari Pulavarty <pbadari@us.ibm.com>
2727 Description:
2828 The file /sys/devices/system/memory/memoryX/phys_device
29
- is read-only and is designed to show the name of physical
30
- memory device. Implementation is currently incomplete.
29
+ is read-only; it is a legacy interface only ever used on s390x
30
+ to expose the covered storage increment.
31
+Users: Legacy s390-tools lsmem/chmem
3132
3233 What: /sys/devices/system/memory/memoryX/phys_index
3334 Date: September 2008
....@@ -47,16 +48,19 @@
4748 online/offline state of the memory section. When written,
4849 root can toggle the the online/offline state of a removable
4950 memory section (see removable file description above)
50
- using the following commands.
51
- # echo online > /sys/devices/system/memory/memoryX/state
52
- # echo offline > /sys/devices/system/memory/memoryX/state
51
+ using the following commands::
52
+
53
+ # echo online > /sys/devices/system/memory/memoryX/state
54
+ # echo offline > /sys/devices/system/memory/memoryX/state
5355
5456 For example, if /sys/devices/system/memory/memory22/removable
5557 contains a value of 1 and
5658 /sys/devices/system/memory/memory22/state contains the
5759 string "online" the following command can be executed by
58
- by root to offline that section.
59
- # echo offline > /sys/devices/system/memory/memory22/state
60
+ by root to offline that section::
61
+
62
+ # echo offline > /sys/devices/system/memory/memory22/state
63
+
6064 Users: hotplug memory remove tools
6165 http://www.ibm.com/developerworks/wikis/display/LinuxP/powerpc-utils
6266
....@@ -78,6 +82,7 @@
7882
7983 For example, the following symbolic link is created for
8084 memory section 9 on node0:
85
+
8186 /sys/devices/system/memory/memory9/node0 -> ../../node/node0
8287
8388
....@@ -90,4 +95,5 @@
9095 points to the corresponding /sys/devices/system/memory/memoryY
9196 memory section directory. For example, the following symbolic
9297 link is created for memory section 9 on node0.
98
+
9399 /sys/devices/system/node/node0/memory9 -> ../../memory/memory9