---
title: init
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/iomemorydescriptor/init
---

# init

Initializes the memory descriptor object.

## Declaration

```occ
virtual bool init();
```

## Return Value

Return Value true if initialization was successful, or false if it was unsuccessful.

## Discussion

Discussion Don’t call this method directly. To allocate a memory buffer for your driver, call the Create method of IOBufferMemoryDescriptor.

## See Also

### Configuring the Buffer

- [free](driverkit/iomemorydescriptor/free.md)
