---
title: mach_port_assert_attributes
framework: Kernel
role: symbol
role_heading: Function
platforms: [macOS 12.0+]
path: kernel/3786107-mach_port_assert_attributes
---

# mach_port_assert_attributes

## Declaration

```occ
kern_return_t mach_port_assert_attributes(ipc_space_t task, mach_port_name_t name, mach_port_flavor_t flavor, mach_port_info_t info, mach_msg_type_number_t infoCnt);
```
