---
title: IORWLockGetMachLock
framework: kernel
role: symbol
role_heading: Function
path: kernel/1553033-iorwlockgetmachlock
---

# IORWLockGetMachLock

Accessor to a Mach read/write lock.

## Declaration

```occ
lck_rw_t * IORWLockGetMachLock(IORWLock *lock);
```

## Parameters

- `lock`: Pointer to the allocated lock.

## Discussion

Discussion Accessor to the Mach read/write lock.

## See Also

### Read/Write Locks

- [IORWLockAlloc](kernel/1553010-iorwlockalloc.md)
- [IORWLockFree](kernel/1553003-iorwlockfree.md)
- [IORWLockRead](kernel/1553004-iorwlockread.md)
- [IORWLockUnlock](kernel/1553011-iorwlockunlock.md)
- [IORWLockWrite](kernel/1552996-iorwlockwrite.md)
- [IORWUnlock](kernel/1553027-iorwunlock.md)
- [IOWriteLock](kernel/1552985-iowritelock.md)
- [IOReadLock](kernel/1553022-ioreadlock.md)
