Browse code

top.h: added a header so the top code can be called from the vm_stat code.

Kevin Geiss authored on29/10/2005 18:27:20
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,24 @@
1
+#ifndef _TOP_H_
2
+#define _TOP_H_
3
+
4
+struct object_info {
5
+        int 	            id;
6
+        int                 pid;
7
+        int                 share_type;
8
+        int                 resident_page_count;
9
+        int                 ref_count;
10
+        int                 task_ref_count;
11
+        int                 size;
12
+        struct object_info  *next;
13
+};
14
+
15
+#define OBJECT_TABLE_SIZE	537
16
+#define OT_HASH(object) (((unsigned)object)%OBJECT_TABLE_SIZE)
17
+
18
+struct object_info      *shared_hash_table[OBJECT_TABLE_SIZE];
19
+
20
+struct object_info *of_free_list = 0;
21
+
22
+unsigned long get_shared_kb();
23
+
24
+#endif // _TOP_H_