aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChristopher Kenna <cjk@cs.unc.edu>2012-03-29 16:58:20 -0400
committerChristopher Kenna <cjk@cs.unc.edu>2012-03-29 17:21:02 -0400
commit606f24606ecf76a62c2e262e260a51bf6f8dc009 (patch)
tree24bcaaeba38dbfffabf98e5000e8dcdffeca6d14 /include
parentb227313bc9f87f67001e92b898d5da7918102b20 (diff)
Allocate only one page at a time. Add proc interface.
Diffstat (limited to 'include')
-rw-r--r--include/litmus/color.h12
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
4struct color_cache_info { 7struct 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
14void _add_page_to_color_list(struct page*);
15void add_page_to_color_list(struct page*);
16struct page* _get_colored_page(unsigned long);
17struct page* get_colored_page(unsigned long);
18
19int color_add_pages_handler(struct ctl_table *, int, void __user *,
20 size_t *, loff_t *);
21int color_nr_pages_handler(struct ctl_table *, int, void __user *,
22 size_t *, loff_t *);
11#endif 23#endif