1RELEASE_MEM_REGION_A(9) Hardware Interfaces RELEASE_MEM_REGION_A(9)
2
3
4
6 release_mem_region_adjustable - release a previously reserved memory
7 region
8
10 int release_mem_region_adjustable(struct resource * parent,
11 resource_size_t start,
12 resource_size_t size);
13
15 parent
16 parent resource descriptor
17
18 start
19 resource start address
20
21 size
22 resource region size
23
25 This interface is intended for memory hot-delete. The requested region
26 is released from a currently busy memory resource. The requested region
27 must either match exactly or fit into a single busy resource entry. In
28 the latter case, the remaining resource is adjusted accordingly.
29 Existing children of the busy memory resource must be immutable in the
30 request.
31
33 - Additional release conditions, such as overlapping region, can be
34 supported after they are confirmed as valid cases. - When a busy memory
35 resource gets split into two entries, the code assumes that all
36 children remain in the lower address entry for simplicity. Enhance this
37 logic when necessary.
38
40Kernel Hackers Manual 3.10 June 2019 RELEASE_MEM_REGION_A(9)