<!--
{
  "availability" : [
    "DriverKit: -",
    "iOS: -",
    "iPadOS: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "DriverKit",
  "identifier" : "/documentation/DriverKit/mach_msg_header_t",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "DriverKit"
    ],
    "preciseIdentifier" : "c:@SA@mach_msg_header_t"
  },
  "title" : "mach_msg_header_t"
}
-->

# mach_msg_header_t

```
typedef struct { ... } mach_msg_header_t;
```

## Topics

### Getting the Header Fields

[`mach_msg_bits_t msgh_bits;`](/documentation/DriverKit/mach_msg_header_t/msgh_bits)

[`mach_msg_id_t msgh_id;`](/documentation/DriverKit/mach_msg_header_t/msgh_id)

[`mach_port_t msgh_local_port;`](/documentation/DriverKit/mach_msg_header_t/msgh_local_port)

[`mach_port_t msgh_remote_port;`](/documentation/DriverKit/mach_msg_header_t/msgh_remote_port)

[`mach_msg_size_t msgh_size;`](/documentation/DriverKit/mach_msg_header_t/msgh_size)

[`mach_port_name_t msgh_voucher_port;`](/documentation/DriverKit/mach_msg_header_t/msgh_voucher_port)



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)