1 What: /sys/kernel/mm/contiguous/
3 Contact: Michal Nazarewicz <m.nazarewicz@samsung.com>
5 If CMA has been built with SysFS support,
6 /sys/kernel/mm/contiguous/ contains a file called
7 "map", a file called "allocators" and a directory
10 The "map" file lets one change the CMA's map attribute
13 The "allocators" file list all registered allocators.
14 Allocators with no name are listed as a single minus
17 The "regions" directory list all reserved regions.
20 Documentation/contiguous-memory.txt.
22 What: /sys/kernel/mm/contiguous/regions/
24 Contact: Michal Nazarewicz <m.nazarewicz@samsung.com>
26 The /sys/kernel/mm/contiguous/regions/ directory
27 contain directories for each registered CMA region.
28 The name of the directory is the same as the start
29 address of the region.
31 If region is named there is also a symbolic link named
32 like the region pointing to the region's directory.
34 Such directory contains the following files:
36 * "name" -- the name of the region or an empty file
37 * "start" -- starting address of the region (formatted
39 * "size" -- size of the region (in bytes).
40 * "free" -- free space in the region (in bytes).
41 * "users" -- number of chunks allocated in the region.
42 * "alloc" -- name of the allocator.
44 If allocator is not attached to the region, "alloc" is
45 either the name of desired allocator in square
46 brackets (ie. "[foo]") or an empty file if region is
47 to be attached to default allocator. If an allocator
48 is attached to the region. "alloc" is either its name
49 or "-" if attached allocator has no name.
51 If there are no chunks allocated in given region
52 ("users" is "0") then a name of desired allocator can
53 be written to "alloc".