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

# IOParseBootArgNumber

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

```
bool IOParseBootArgNumber(const char *arg_string, void *arg_ptr, int max_len);
```

## Parameters

`arg_string`

C-string name of the argument.

`arg_ptr`

Pointer to variable to received parsed value.

`max_len`

Size in bytes of the argument 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 an integer.

---

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)