Applied patch by Rene Gollent:

* Add a cached_pages field to the system_info structure, and change the
  meaning of the used_pages field to not include cached pages.
* Provide the needed info using the new calls vm_get_available_memory(),
  and vm_page_num_available_pages().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24571 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2008-03-25 11:51:45 +00:00
parent b11e554156
commit 41f8d41647
7 changed files with 34 additions and 7 deletions
+2 -1
View File
@@ -657,7 +657,8 @@ typedef struct {
int64 kernel_version; /* version of this kernel */
bigtime_t _busy_wait_time; /* reserved for whatever */
int32 pad[4]; /* just in case... */
int32 cached_pages;
int32 pad[3]; /* just in case... */
} system_info;
/* system private, use macro instead */