---
title: mach_port_guard_exception_codes
framework: kernel
role: symbol
path: kernel/mach_port_guard_exception_codes
---

# mach_port_guard_exception_codes

## Declaration

```occ
enum mach_port_guard_exception_codes : unsigned int {
    ...
};
```

## Topics

### Constants

- [kGUARD_EXC_DESTROY](kernel/mach_port_guard_exception_codes/kguard_exc_destroy.md)
- [kGUARD_EXC_INCORRECT_GUARD](kernel/mach_port_guard_exception_codes/kguard_exc_incorrect_guard.md)
- [kGUARD_EXC_MOD_REFS](kernel/mach_port_guard_exception_codes/kguard_exc_mod_refs.md)
- [kGUARD_EXC_SET_CONTEXT](kernel/mach_port_guard_exception_codes/kguard_exc_set_context.md)
- [kGUARD_EXC_UNGUARDED](kernel/mach_port_guard_exception_codes/kguard_exc_unguarded.md)
- [kGUARD_EXC_EXCEPTION_BEHAVIOR_ENFORCE](kernel/mach_port_guard_exception_codes/kguard_exc_exception_behavior_enforce.md)
- [kGUARD_EXC_IMMOVABLE](kernel/mach_port_guard_exception_codes/kguard_exc_immovable.md)
- [kGUARD_EXC_IMMOVABLE_NON_FATAL](kernel/mach_port_guard_exception_codes/kguard_exc_immovable_non_fatal.md)
- [kGUARD_EXC_INVALID_ARGUMENT](kernel/mach_port_guard_exception_codes/kguard_exc_invalid_argument.md)
- [kGUARD_EXC_INVALID_NAME](kernel/mach_port_guard_exception_codes/kguard_exc_invalid_name.md)
- [kGUARD_EXC_INVALID_OPTIONS](kernel/mach_port_guard_exception_codes/kguard_exc_invalid_options.md)
- [kGUARD_EXC_INVALID_RIGHT](kernel/mach_port_guard_exception_codes/kguard_exc_invalid_right.md)
- [kGUARD_EXC_INVALID_VALUE](kernel/mach_port_guard_exception_codes/kguard_exc_invalid_value.md)
- [kGUARD_EXC_KERN_FAILURE](kernel/mach_port_guard_exception_codes/kguard_exc_kern_failure.md)
- [kGUARD_EXC_KERN_NO_SPACE](kernel/mach_port_guard_exception_codes/kguard_exc_kern_no_space.md)
- [kGUARD_EXC_KERN_RESOURCE](kernel/mach_port_guard_exception_codes/kguard_exc_kern_resource.md)
- [kGUARD_EXC_MOD_REFS_NON_FATAL](kernel/mach_port_guard_exception_codes/kguard_exc_mod_refs_non_fatal.md)
- [kGUARD_EXC_MSG_FILTERED](kernel/mach_port_guard_exception_codes/kguard_exc_msg_filtered.md)
- [kGUARD_EXC_PROVISIONAL_REPLY_PORT](kernel/mach_port_guard_exception_codes/kguard_exc_provisional_reply_port.md)
- [kGUARD_EXC_RCV_GUARDED_DESC](kernel/mach_port_guard_exception_codes/kguard_exc_rcv_guarded_desc.md)
- [kGUARD_EXC_RCV_INVALID_NAME](kernel/mach_port_guard_exception_codes/kguard_exc_rcv_invalid_name.md)
- [kGUARD_EXC_REQUIRE_REPLY_PORT_SEMANTICS](kernel/mach_port_guard_exception_codes/kguard_exc_require_reply_port_semantics.md)
- [kGUARD_EXC_RIGHT_EXISTS](kernel/mach_port_guard_exception_codes/kguard_exc_right_exists.md)
- [kGUARD_EXC_SEND_INVALID_REPLY](kernel/mach_port_guard_exception_codes/kguard_exc_send_invalid_reply.md)
- [kGUARD_EXC_SEND_INVALID_RIGHT](kernel/mach_port_guard_exception_codes/kguard_exc_send_invalid_right.md)
- [kGUARD_EXC_SEND_INVALID_VOUCHER](kernel/mach_port_guard_exception_codes/kguard_exc_send_invalid_voucher.md)
- [kGUARD_EXC_SERVICE_PORT_VIOLATION_FATAL](kernel/mach_port_guard_exception_codes/kguard_exc_service_port_violation_fatal.md)
- [kGUARD_EXC_SERVICE_PORT_VIOLATION_NON_FATAL](kernel/mach_port_guard_exception_codes/kguard_exc_service_port_violation_non_fatal.md)
- [kGUARD_EXC_STRICT_REPLY](kernel/mach_port_guard_exception_codes/kguard_exc_strict_reply.md)
- [kGUARD_EXC_THREAD_SET_STATE](kernel/mach_port_guard_exception_codes/kguard_exc_thread_set_state.md)

## See Also

### Ports

- [mem_entry_name_port_t](kernel/mem_entry_name_port_t.md)
- [mach_port_array_t](kernel/mach_port_array_t.md)
- [mach_port_context_t](kernel/mach_port_context_t.md)
- [mach_port_delta_t](kernel/mach_port_delta_t.md)
- [mach_port_flavor_t](kernel/mach_port_flavor_t.md)
- [mach_port_info_t](kernel/mach_port_info_t.md)
- [mach_port_mscount_t](kernel/mach_port_mscount_t.md)
- [mach_port_msgcount_t](kernel/mach_port_msgcount_t.md)
- [mach_port_name_array_t](kernel/mach_port_name_array_t.md)
- [mach_port_name_t](kernel/mach_port_name_t.md)
- [mach_port_options_ptr_t](kernel/mach_port_options_ptr_t.md)
- [mach_port_right_t](kernel/mach_port_right_t.md)
- [mach_port_rights_t](kernel/mach_port_rights_t.md)
- [mach_port_seqno_t](kernel/mach_port_seqno_t.md)
- [mach_port_srights_t](kernel/mach_port_srights_t.md)
- [mach_port_t](kernel/mach_port_t.md)
- [mach_port_type_array_t](kernel/mach_port_type_array_t.md)
- [mach_port_type_t](kernel/mach_port_type_t.md)
- [mach_port_urefs_t](kernel/mach_port_urefs_t.md)
- [mach_port_allocate](kernel/1578704-mach_port_allocate.md)
- [mach_port_allocate_full](kernel/1578763-mach_port_allocate_full.md)
- [mach_port_allocate_name](kernel/1578657-mach_port_allocate_name.md)
- [mach_port_allocate_qos](kernel/1578746-mach_port_allocate_qos.md)
- [mach_port_construct](kernel/1578687-mach_port_construct.md)
- [mach_port_deallocate](kernel/1578777-mach_port_deallocate.md)
- [mach_port_destroy](kernel/1578817-mach_port_destroy.md)
- [mach_port_destruct](kernel/1578881-mach_port_destruct.md)
- [mach_port_dnrequest_info](kernel/1578613-mach_port_dnrequest_info.md)
- [mach_port_extract_member](kernel/1578633-mach_port_extract_member.md)
- [mach_port_extract_right](kernel/1578688-mach_port_extract_right.md)
- [mach_port_get_attributes](kernel/1578800-mach_port_get_attributes.md)
- [mach_port_get_context](kernel/1578930-mach_port_get_context.md)
- [mach_port_get_refs](kernel/1578946-mach_port_get_refs.md)
- [mach_port_get_set_status](kernel/1578936-mach_port_get_set_status.md)
- [mach_port_get_srights](kernel/1578818-mach_port_get_srights.md)
- [mach_port_guard](kernel/1578772-mach_port_guard.md)
- [mach_port_guard_with_flags](kernel/3181823-mach_port_guard_with_flags.md)
- [mach_port_insert_member](kernel/1578885-mach_port_insert_member.md)
- [mach_port_insert_right](kernel/1578739-mach_port_insert_right.md)
- [mach_port_kernel_object](kernel/1578723-mach_port_kernel_object.md)
- [mach_port_kobject](kernel/1578702-mach_port_kobject.md)
- [mach_port_kobject_description](kernel/3516847-mach_port_kobject_description.md)
- [mach_port_mod_refs](kernel/1578894-mach_port_mod_refs.md)
- [mach_port_move_member](kernel/1578673-mach_port_move_member.md)
- [mach_port_names](kernel/1578814-mach_port_names.md)
- [mach_port_peek](kernel/1578839-mach_port_peek.md)
- [mach_port_rename](kernel/1578909-mach_port_rename.md)
- [mach_port_request_notification](kernel/1578734-mach_port_request_notification.md)
- [mach_port_set_attributes](kernel/1578964-mach_port_set_attributes.md)
- [mach_port_set_context](kernel/1578733-mach_port_set_context.md)
- [mach_port_set_mscount](kernel/1578719-mach_port_set_mscount.md)
- [mach_port_set_seqno](kernel/1578744-mach_port_set_seqno.md)
- [mach_port_space_basic_info](kernel/1578841-mach_port_space_basic_info.md)
- [mach_port_space_info](kernel/1578884-mach_port_space_info.md)
- [mach_port_special_reply_port_reset_link](kernel/3013817-mach_port_special_reply_port_res.md)
- [mach_port_swap_guard](kernel/3181824-mach_port_swap_guard.md)
- [mach_port_type](kernel/1578714-mach_port_type.md)
- [mach_port_unguard](kernel/1578951-mach_port_unguard.md)
- [mach_eventlink_t](kernel/mach_eventlink_t.md)
- [audit_triggers](kernel/1574078-audit_triggers.md)
- [mach_port_deleted_notification_t](kernel/mach_port_deleted_notification_t.md)
- [mach_port_destroyed_notification_t](kernel/mach_port_destroyed_notification_t.md)
- [mach_port_info_ext_t](kernel/mach_port_info_ext_t.md)
- [mach_port_limits_t](kernel/mach_port_limits_t.md)
- [mach_port_options_t](kernel/mach_port_options_t.md)
- [mach_port_qos_t](kernel/mach_port_qos_t.md)
- [mach_port_status_t](kernel/mach_port_status_t.md)
- [ipc_info_name_array_t](kernel/ipc_info_name_array_t.md)
- [ipc_info_tree_name_array_t](kernel/ipc_info_tree_name_array_t.md)
- [ipc_object_t](kernel/ipc_object_t.md)
- [ipc_perm](kernel/ipc_perm.md)
- [ipc_port_t](kernel/ipc_port_t.md)
- [ipc_pthread_priority_value_t](kernel/ipc_pthread_priority_value_t.md)
- [ipc_space_inspect_t](kernel/ipc_space_inspect_t.md)
- [ipc_space_port_t](kernel/ipc_space_port_t.md)
- [ipc_space_t](kernel/ipc_space_t.md)
- [ipc_voucher_attr_control_t](kernel/ipc_voucher_attr_control_t.md)
- [ipc_voucher_attr_manager_t](kernel/ipc_voucher_attr_manager_t.md)
- [ipc_voucher_t](kernel/ipc_voucher_t.md)
