---
title: lck_attr_alloc_init
framework: Kernel
role: symbol
role_heading: Function
platforms: [macOS 10.4+]
path: kernel/1575529-lck_attr_alloc_init
---

# lck_attr_alloc_init

## Declaration

```occ
lck_attr_t * lck_attr_alloc_init(void);
```

## See Also

### locks

- [lck_attr_cleardebug](kernel/1575538-lck_attr_cleardebug.md)
- [lck_attr_free](kernel/1575499-lck_attr_free.md)
- [lck_attr_setdebug](kernel/1575551-lck_attr_setdebug.md)
- [lck_attr_setdefault](kernel/1575541-lck_attr_setdefault.md)
- [lck_grp_alloc_init](kernel/1575515-lck_grp_alloc_init.md)
- [lck_grp_attr_alloc_init](kernel/1575518-lck_grp_attr_alloc_init.md)
- [lck_grp_attr_free](kernel/1575492-lck_grp_attr_free.md)
- [lck_grp_attr_setdefault](kernel/1575540-lck_grp_attr_setdefault.md)
- [lck_grp_attr_setstat](kernel/1575490-lck_grp_attr_setstat.md)
- [lck_grp_free](kernel/1575524-lck_grp_free.md)
- [lck_mtx_alloc_init](kernel/1575516-lck_mtx_alloc_init.md)
- [lck_mtx_assert](kernel/1575514-lck_mtx_assert.md)
- [lck_mtx_destroy](kernel/1575534-lck_mtx_destroy.md)
- [lck_mtx_free](kernel/1575493-lck_mtx_free.md)
- [lck_mtx_init](kernel/1575548-lck_mtx_init.md)
- [lck_mtx_lock](kernel/1575544-lck_mtx_lock.md)
- [lck_mtx_sleep](kernel/1575546-lck_mtx_sleep.md)
- [lck_mtx_sleep_deadline](kernel/1575501-lck_mtx_sleep_deadline.md)
- [lck_mtx_unlock](kernel/1575506-lck_mtx_unlock.md)
- [lck_rw_alloc_init](kernel/1575521-lck_rw_alloc_init.md)
- [lck_rw_destroy](kernel/1575502-lck_rw_destroy.md)
- [lck_rw_free](kernel/1575547-lck_rw_free.md)
- [lck_rw_init](kernel/1575530-lck_rw_init.md)
- [lck_rw_lock](kernel/1575537-lck_rw_lock.md)
- [lck_rw_lock_exclusive](kernel/1575510-lck_rw_lock_exclusive.md)
- [lck_rw_lock_exclusive_to_shared](kernel/1575536-lck_rw_lock_exclusive_to_shared.md)
- [lck_rw_lock_shared](kernel/1575517-lck_rw_lock_shared.md)
- [lck_rw_lock_shared_to_exclusive](kernel/1575507-lck_rw_lock_shared_to_exclusive.md)
- [lck_rw_sleep](kernel/1575504-lck_rw_sleep.md)
- [lck_rw_sleep_deadline](kernel/1575512-lck_rw_sleep_deadline.md)
- [lck_rw_try_lock](kernel/1575528-lck_rw_try_lock.md)
- [lck_rw_unlock](kernel/1575549-lck_rw_unlock.md)
- [lck_rw_unlock_exclusive](kernel/1575542-lck_rw_unlock_exclusive.md)
- [lck_rw_unlock_shared](kernel/1575496-lck_rw_unlock_shared.md)
- [lck_spin_alloc_init](kernel/1575508-lck_spin_alloc_init.md)
- [lck_spin_destroy](kernel/1575489-lck_spin_destroy.md)
- [lck_spin_free](kernel/1575491-lck_spin_free.md)
- [lck_spin_init](kernel/1575543-lck_spin_init.md)
- [lck_spin_lock](kernel/1575532-lck_spin_lock.md)
- [lck_spin_lock_grp](kernel/3112641-lck_spin_lock_grp.md)
- [lck_spin_sleep](kernel/1575509-lck_spin_sleep.md)
- [lck_spin_sleep_deadline](kernel/1575526-lck_spin_sleep_deadline.md)
- [lck_spin_sleep_grp](kernel/3112642-lck_spin_sleep_grp.md)
- [lck_spin_unlock](kernel/1575523-lck_spin_unlock.md)
