---
title: mach_vm_protect
framework: Kernel
role: symbol
role_heading: Function
platforms: [macOS 10.4+]
path: kernel/1402291-mach_vm_protect
---

# mach_vm_protect

## Declaration

```occ
kern_return_t mach_vm_protect(vm_map_t target_task, mach_vm_address_t address, mach_vm_size_t size, boolean_t set_maximum, vm_prot_t new_protection);
```

## See Also

### Configuration

- [mach_vm_wire](kernel/1588962-mach_vm_wire.md)
- [mach_vm_inherit](kernel/1402141-mach_vm_inherit.md)
- [mach_vm_machine_attribute](kernel/1402429-mach_vm_machine_attribute.md)
- [mach_vm_msync](kernel/1402328-mach_vm_msync.md)
- [mach_vm_purgable_control](kernel/1402224-mach_vm_purgable_control.md)
- [mach_vm_behavior_set](kernel/1402468-mach_vm_behavior_set.md)
- [mach_vm_page_info](kernel/1402504-mach_vm_page_info.md)
- [mach_vm_page_query](kernel/1402261-mach_vm_page_query.md)
- [mach_vm_page_range_query](kernel/2890784-mach_vm_page_range_query.md)
- [mach_vm_round_page_overflow](kernel/1643689-mach_vm_round_page_overflow.md)
