Root/
1 | #ifndef __LINUX_PAGEISOLATION_H |
2 | #define __LINUX_PAGEISOLATION_H |
3 | |
4 | /* |
5 | * Changes migrate type in [start_pfn, end_pfn) to be MIGRATE_ISOLATE. |
6 | * If specified range includes migrate types other than MOVABLE, |
7 | * this will fail with -EBUSY. |
8 | * |
9 | * For isolating all pages in the range finally, the caller have to |
10 | * free all pages in the range. test_page_isolated() can be used for |
11 | * test it. |
12 | */ |
13 | extern int |
14 | start_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn); |
15 | |
16 | /* |
17 | * Changes MIGRATE_ISOLATE to MIGRATE_MOVABLE. |
18 | * target range is [start_pfn, end_pfn) |
19 | */ |
20 | extern int |
21 | undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn); |
22 | |
23 | /* |
24 | * test all pages in [start_pfn, end_pfn)are isolated or not. |
25 | */ |
26 | extern int |
27 | test_pages_isolated(unsigned long start_pfn, unsigned long end_pfn); |
28 | |
29 | /* |
30 | * Internal funcs.Changes pageblock's migrate type. |
31 | * Please use make_pagetype_isolated()/make_pagetype_movable(). |
32 | */ |
33 | extern int set_migratetype_isolate(struct page *page); |
34 | extern void unset_migratetype_isolate(struct page *page); |
35 | |
36 | |
37 | #endif |
38 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9