---
title: "libkern::adopt_memory"
framework: Kernel
role: symbol
role_heading: Global Variable
platforms: [driverkit 21.0+, macOS 12.0+]
path: kernel/libkern_adopt_memory
---

# libkern::adopt_memory

## Declaration

```occ
const adopt_memory_t libkern::adopt_memory;
```
