diff options
author | Christopher Kenna <cjk@cs.unc.edu> | 2012-03-29 16:58:20 -0400 |
---|---|---|
committer | Christopher Kenna <cjk@cs.unc.edu> | 2012-03-29 17:21:02 -0400 |
commit | 606f24606ecf76a62c2e262e260a51bf6f8dc009 (patch) | |
tree | 24bcaaeba38dbfffabf98e5000e8dcdffeca6d14 /include | |
parent | b227313bc9f87f67001e92b898d5da7918102b20 (diff) |
Allocate only one page at a time. Add proc interface.
Diffstat (limited to 'include')
-rw-r--r-- | include/litmus/color.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/litmus/color.h b/include/litmus/color.h index 3933cf12cf3f..ce182c2e65a7 100644 --- a/include/litmus/color.h +++ b/include/litmus/color.h | |||
@@ -1,6 +1,9 @@ | |||
1 | #ifndef LITMUS_COLOR_H | 1 | #ifndef LITMUS_COLOR_H |
2 | #define LITMUS_COLOR_H | 2 | #define LITMUS_COLOR_H |
3 | 3 | ||
4 | #define ONE_COLOR_LEN 11 | ||
5 | #define ONE_COLOR_FMT "%4lu: %4d\n" | ||
6 | |||
4 | struct color_cache_info { | 7 | struct color_cache_info { |
5 | unsigned long size; | 8 | unsigned long size; |
6 | unsigned long line_size; | 9 | unsigned long line_size; |
@@ -8,4 +11,13 @@ struct color_cache_info { | |||
8 | unsigned long sets; | 11 | unsigned long sets; |
9 | }; | 12 | }; |
10 | 13 | ||
14 | void _add_page_to_color_list(struct page*); | ||
15 | void add_page_to_color_list(struct page*); | ||
16 | struct page* _get_colored_page(unsigned long); | ||
17 | struct page* get_colored_page(unsigned long); | ||
18 | |||
19 | int color_add_pages_handler(struct ctl_table *, int, void __user *, | ||
20 | size_t *, loff_t *); | ||
21 | int color_nr_pages_handler(struct ctl_table *, int, void __user *, | ||
22 | size_t *, loff_t *); | ||
11 | #endif | 23 | #endif |