Lines Matching refs:lock_id
1718 unsigned int lock_id;
1721 if (mbox_lock(mbox, F_WRLCK, &lock_id) <= 0)
1731 mbox_unlock(mbox, lock_id);
1796 unsigned int *lock_id)
1817 if (mbox_lock(mbox, F_RDLCK, lock_id) <= 0)
1840 mbox_unlock(mbox, *lock_id);
1841 *lock_id = 0;
1858 if ((ret = mbox_lock(mbox, lock_type, lock_id)) <= 0) {
1863 if (mbox_lock(mbox, F_RDLCK, lock_id) <= 0)
1946 if (*lock_id == 0) {
1994 i_assert(*lock_id != 0);
2010 unsigned int lock_id = 0;
2017 ret = mbox_sync_int(mbox, flags, &lock_id);
2020 if (lock_id != 0) {
2023 mbox_unlock(mbox, lock_id);
2025 if (mbox_unlock(mbox, lock_id) < 0)
2033 if (mbox_unlock(mbox, lock_id) < 0)