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

# IOParseBootArgString

Parses any boot arguments in the macOS kernel boot-args.

```
bool IOParseBootArgString(const char *arg_string, char *arg_ptr, int strlen);
```

## Parameters

`arg_string`

C-string name of the argument.

`arg_ptr`

Pointer to char array to received parsed value.

`strlen`

Size in bytes of the char array pointed to by arg_ptr.

## Return Value

True if the argument was found and parsed successfully to arg_ptr.

## Discussion

If the named argument is present in the kernel boot-args, return its value as a c-string.

---

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)