aboutsummaryrefslogtreecommitdiff
path: root/misc/sys
diff options
context:
space:
mode:
Diffstat (limited to 'misc/sys')
-rw-r--r--misc/sys/mman.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/misc/sys/mman.h b/misc/sys/mman.h
index 4aa4a52..5b53cd2 100644
--- a/misc/sys/mman.h
+++ b/misc/sys/mman.h
@@ -114,6 +114,13 @@ extern int munlockall (void) __THROW;
differ from ADDR. */
extern void *mremap (void *__addr, size_t __old_len, size_t __new_len,
int __may_move) __THROW;
+
+/* mincore returns the memory residency status of the pages in the
+ current process's address space specified by [start, start + len).
+ The status is returned in a vector of bytes. The least significant
+ bit of each byte is 1 if the referenced page is in memory, otherwise
+ it is zero. */
+extern int mincore (void *__start, size_t __len, unsigned char *__vec);
#endif
__END_DECLS