---
title: setOwnership
framework: kernel
role: symbol
role_heading: Instance Method
path: kernel/iomemorydescriptor/3142952-setownership
---

# setOwnership

Set the task that owns the descriptor’s memory.

## Declaration

```occ
IOReturn setOwnership(task_t newOwner, int newLedgerTag, IOOptionBits newLedgerOptions);
```

## See Also

### Configuring the Descriptor

- [setPurgeable](kernel/iomemorydescriptor/1812865-setpurgeable.md)
- [setPurgeable](kernel/iomemorydescriptor/1442065-setpurgeable.md)
