Add private get_memory_properties() syscall which allows one to retrieve the

address protection bits as well as the wiring flags for an arbitrary address
in a team's address space. Will be used in the debugger for the purposes
of the memory inspector/editor, in order to determine whether it can in fact
allow editing for the currently inspected address range.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42129 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent
2011-06-12 20:17:14 +00:00
parent d63c093e9d
commit 36dc99a323
5 changed files with 79 additions and 0 deletions
+5
View File
@@ -435,6 +435,11 @@ extern status_t _kern_sync_memory(void *address, size_t size, int flags);
extern status_t _kern_memory_advice(void *address, size_t size,
uint32 advice);
extern status_t _kern_get_memory_properties(team_id teamID,
const void *address,
uint32* _protected,
uint32* _lock);
/* kernel port functions */
extern port_id _kern_create_port(int32 queue_length, const char *name);
extern status_t _kern_close_port(port_id id);