Skip to content

Commit 4dd465c

Browse files
hadesskeszybz
authored andcommitted
udev: Extract RAM properties from DMI information
Add memory_id program to set properties about the physical memory devices in the system. This is useful on machines with removable memory modules to show how the machine can be upgraded, and on all devices to detect the actual RAM size, without relying on the OS accessible amount. Closes: systemd#16651
1 parent 84a1ff9 commit 4dd465c

11 files changed

+859
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
*.[ch] whitespace=tab-in-indent,trailing-space
2+
test/dmidecode-dumps/*.bin binary

rules.d/70-memory.rules

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# do not edit this file, it will be overwritten on update
2+
3+
ACTION=="remove", GOTO="memory_end"
4+
SUBSYSTEM!="dmi", GOTO="memory_end"
5+
6+
IMPORT{program}="dmi_memory_id"
7+
8+
LABEL="memory_end"

rules.d/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ rules = files('''
1717
60-serial.rules
1818
70-joystick.rules
1919
70-mouse.rules
20+
70-memory.rules
2021
70-touchpad.rules
2122
75-net-description.rules
2223
75-probe_mtd.rules

0 commit comments

Comments
 (0)