---
title: vm_protect
framework: Kernel
role: symbol
role_heading: Function
platforms: [macOS 10.0+]
path: kernel/1585294-vm_protect
---

# vm_protect

## Declaration

```occ
kern_return_t vm_protect(vm_map_t target_task, vm_address_t address, vm_size_t size, boolean_t set_maximum, vm_prot_t new_protection);
```

## See Also

### Configuration

- [vm_wire](kernel/1588985-vm_wire.md)
- [mach_memory_info](kernel/1502832-mach_memory_info.md)
- [vm_behavior_set](kernel/1585236-vm_behavior_set.md)
- [vm_machine_attribute](kernel/1585354-vm_machine_attribute.md)
- [vm_purgable_control](kernel/1585267-vm_purgable_control.md)
- [vm_inherit](kernel/1585275-vm_inherit.md)
- [vm_msync](kernel/1585201-vm_msync.md)
