---
title: initWithSpecification
framework: kernel
role: symbol
role_heading: Instance Method
path: kernel/iodmacommand/3516450-initwithspecification
---

# initWithSpecification

Primary initializer for the DMA command object.

## Declaration

```occ
virtual bool initWithSpecification(SegmentFunction outSegFunc, const SegmentOptions *segmentOptions, uint32_t mappingOptions, IOMapper *mapper, void *refCon);
```

## See Also

### Creating a DMA Command

- [withSpecification](kernel/iodmacommand/1811330-withspecification.md)
- [withSpecification](kernel/iodmacommand/1547758-withspecification.md)
- [withSpecification](kernel/iodmacommand/3516452-withspecification.md)
- [initWithSpecification](kernel/iodmacommand/1811207-initwithspecification.md)
- [initWithSpecification](kernel/iodmacommand/1547748-initwithspecification.md)
- [weakWithSpecification](kernel/iodmacommand/1811323-weakwithspecification.md)
- [withRefCon](kernel/iodmacommand/1547747-withrefcon.md)
- [initWithRefCon](kernel/iodmacommand/1547754-initwithrefcon.md)
- [cloneCommand](kernel/iodmacommand/1811059-clonecommand.md)
- [cloneCommand](kernel/iodmacommand/1547732-clonecommand.md)
- [init](driverkit/iodmacommand/3645796-init.md)
- [free](kernel/iodmacommand/1547725-free.md)
- [MappingOptions](kernel/iodmacommand/mappingoptions.md)
- [SynchronizeOptions](kernel/iodmacommand/synchronizeoptions.md)
