<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "EndpointSecurity",
  "identifier" : "/documentation/EndpointSecurity/es_event_get_task_read_t",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Endpoint Security"
    ],
    "preciseIdentifier" : "c:@SA@es_event_get_task_read_t"
  },
  "title" : "es_event_get_task_read_t"
}
-->

# es_event_get_task_read_t

A type for an event that indicates the retrieval of a task’s read port.

```
struct es_event_get_task_read_t
```

## Overview

This event represents a process that obtains a send right to a task read port, through `SYS_task_read_for_pid` or functions like `task_identity_token_get_task_port(_:_:_:)`.

> Note:
> For more information on ports and port rights, see the “Ports, Port Rights, Port Sets, and Port Namespaces” section of [Mach Overview](https://developer.apple.com/library/archive/documentation/Darwin/Conceptual/KernelProgramming/Mach/Mach.html) in the [Kernel Programming Guide](https://developer.apple.com/library/archive/documentation/Darwin/Conceptual/KernelProgramming/About/About.html).

## Topics

### Inspecting Event Properties

[`target`](/documentation/EndpointSecurity/es_event_get_task_read_t/target)

The process targeted by this event.

[`reserved`](/documentation/EndpointSecurity/es_event_get_task_read_t/reserved)

An unused field reserved for future use.



---

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)