Back to home page

OSCL-LXR

 
 

    


0001 #ifndef __MEM2NODE_H
0002 #define __MEM2NODE_H
0003 
0004 #include <linux/rbtree.h>
0005 #include <linux/types.h>
0006 
0007 struct perf_env;
0008 struct phys_entry;
0009 
0010 struct mem2node {
0011     struct rb_root       root;
0012     struct phys_entry   *entries;
0013     int          cnt;
0014 };
0015 
0016 int  mem2node__init(struct mem2node *map, struct perf_env *env);
0017 void mem2node__exit(struct mem2node *map);
0018 int  mem2node__node(struct mem2node *map, u64 addr);
0019 
0020 #endif /* __MEM2NODE_H */