---
title: getDirection
framework: kernel
role: symbol
role_heading: Instance Method
path: kernel/iomemorydescriptor/1441925-getdirection
---

# getDirection

Gets the direction of memory transfers associated with the descriptor.

## Declaration

```occ
virtual IODirection getDirection(void);
```

## Return Value

Return Value The transfer direction.

## Discussion

Discussion This method returns the direction with which the memory descriptor was created.

## See Also

### Getting the Descriptor Information

- [getDirection](kernel/iomemorydescriptor/1812765-getdirection.md)
- [getLength](kernel/iomemorydescriptor/1812776-getlength.md)
- [getLength](kernel/iomemorydescriptor/1442036-getlength.md)
- [GetLength](driverkit/iomemorydescriptor/getlength.md)
- [getDMAMapLength](kernel/iomemorydescriptor/3553361-getdmamaplength.md)
- [getFlags](kernel/iomemorydescriptor/2870265-getflags.md)
- [getMetaClass](kernel/iomemorydescriptor/1442096-getmetaclass.md)
