XPRAM partitions and device nodes
The XPRAM device driver uses major number 35. The standard device names are of the form slram<n>, where <n> is the corresponding minor number.
You can use the entire available expanded storage as a single XPRAM device or divide it into up to 32 partitions. Each partition is treated as a separate XPRAM device.
If the entire expanded storage is used a single device, the device name is slram0. For partitioned expanded storage, the <n> in the device name denotes the (n+1)th partition. For example, the first partition is called slram0, the second slram1, and the 32nd partition is called slram31.
Minor | Name | To access |
---|---|---|
0 | slram0 | the first partition or the entire expanded storage if there are no partitions |
1 | slram1 | the second partition |
2 | slram2 | the third partition |
...
<n> ... |
...
slram<n> ... |
...
the (<n>+1)th partition ... |
31 | slram31 | the 32nd partition |
The device nodes that you need to access these partitions are created by udev when you load the XPRAM device driver module. The nodes are of the form /dev/slram<n>, where <n> is the index number of the partition. In addition, to the device nodes udev creates a symbolic link of the form /dev/xpram<n> that points to the respective device node.