<!--
{
  "availability" : [
    "*: -",
    "DriverKit: -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkingDriverKit",
  "identifier" : "/documentation/NetworkingDriverKit/IOUserNetworkPacket/GetMemorySegmentOffset-39e4c",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "NetworkingDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOUserNetworkPacket@F@GetMemorySegmentOffset#*k#1"
  },
  "title" : "GetMemorySegmentOffset"
}
-->

# GetMemorySegmentOffset

Gets the offset to the beginning of the packet in the corresponding memory buffer.

```
virtual kern_return_t GetMemorySegmentOffset(uint64_t *offset) const;
```

## Parameters

`offset`

On return, the memory segment offset value.

## Return Value

`kIOReturnSuccess` on success, or another value if an error occurred.

---

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)