File: mem_regions.h

package info (click to toggle)
kexec-tools 1%3A2.0.29-2
  • links: PTS
  • area: main
  • in suites: trixie
  • size: 3,040 kB
  • sloc: ansic: 29,720; sh: 3,553; asm: 2,625; cpp: 1,753; makefile: 964
file content (22 lines) | stat: -rw-r--r-- 625 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef MEM_REGIONS_H
#define MEM_REGIONS_H

struct memory_ranges;
struct memory_range;

void mem_regions_sort(struct memory_ranges *ranges);

int mem_regions_exclude(struct memory_ranges *ranges,
			const struct memory_range *range);

int mem_regions_add(struct memory_ranges *ranges, unsigned long long base,
                    unsigned long long length, int type);

int mem_regions_alloc_and_exclude(struct memory_ranges *ranges,
				  const struct memory_range *range);

int mem_regions_alloc_and_add(struct memory_ranges *ranges,
			      unsigned long long base,
			      unsigned long long length, int type);

#endif