* Added vm_page_write_modified_page_range(), which is similar to
vm_page_write_modified_pages(), save that it only writes pages in the given range. * Added vm_page_schedule_write_page_range() which schedules all modified pages in the given cache's range for writing by the page writer. * Added _kern_sync_memory() syscall and the msync() POSIX function. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25620 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -25,6 +25,11 @@
|
||||
/* mmap() error return code */
|
||||
#define MAP_FAILED ((void*)-1)
|
||||
|
||||
/* msync() flags */
|
||||
#define MS_ASYNC 0x01
|
||||
#define MS_SYNC 0x02
|
||||
#define MS_INVALIDATE 0x04
|
||||
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
@@ -32,6 +37,8 @@ void* mmap(void* address, size_t length, int protection, int flags,
|
||||
int fd, off_t offset);
|
||||
int munmap(void* address, size_t length);
|
||||
|
||||
int msync(void* address, size_t length, int flags);
|
||||
|
||||
int shm_open(const char* name, int openMode, mode_t permissions);
|
||||
int shm_unlink(const char* name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user