hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/Documentation/ABI/testing/sysfs-firmware-memmap
....@@ -20,7 +20,7 @@
2020 the raw memory map to userspace.
2121
2222 The structure is as follows: Under /sys/firmware/memmap there
23
- are subdirectories with the number of the entry as their name:
23
+ are subdirectories with the number of the entry as their name::
2424
2525 /sys/firmware/memmap/0
2626 /sys/firmware/memmap/1
....@@ -34,14 +34,16 @@
3434
3535 Each directory contains three files:
3636
37
- start : The start address (as hexadecimal number with the
37
+ ======== =====================================================
38
+ start The start address (as hexadecimal number with the
3839 '0x' prefix).
39
- end : The end address, inclusive (regardless whether the
40
+ end The end address, inclusive (regardless whether the
4041 firmware provides inclusive or exclusive ranges).
41
- type : Type of the entry as string. See below for a list of
42
+ type Type of the entry as string. See below for a list of
4243 valid types.
44
+ ======== =====================================================
4345
44
- So, for example:
46
+ So, for example::
4547
4648 /sys/firmware/memmap/0/start
4749 /sys/firmware/memmap/0/end
....@@ -57,9 +59,8 @@
5759 - reserved
5860
5961 Following shell snippet can be used to display that memory
60
- map in a human-readable format:
62
+ map in a human-readable format::
6163
62
- -------------------- 8< ----------------------------------------
6364 #!/bin/bash
6465 cd /sys/firmware/memmap
6566 for dir in * ; do
....@@ -68,4 +69,3 @@
6869 type=$(cat $dir/type)
6970 printf "%016x-%016x (%s)\n" $start $[ $end +1] "$type"
7071 done
71
- -------------------- >8 ----------------------------------------