diff options
Diffstat (limited to 'vm/vm_user.c')
-rw-r--r-- | vm/vm_user.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vm/vm_user.c b/vm/vm_user.c index c5530a69..1385b127 100644 --- a/vm/vm_user.c +++ b/vm/vm_user.c @@ -239,6 +239,21 @@ kern_return_t vm_machine_attribute(map, address, size, attribute, value) return vm_map_machine_attribute(map, address, size, attribute, value); } +/* + * Return machine-specific attribute for memory advice, such + * as maximal size of requested cluster. + */ +kern_return_t +vm_get_advice_info(vm_map_t map, vm_size_t* max_cluster /* OUT */) +{ + if (map == VM_MAP_NULL) + return(KERN_INVALID_ARGUMENT); + + *max_cluster = VM_ADVICE_MAX_READAHEAD * PAGE_SIZE; + + return KERN_SUCCESS; +} + kern_return_t vm_read(map, address, size, data, data_size) vm_map_t map; vm_address_t address; |