Searched refs:am_lock (Results 1 – 3 of 3) sorted by relevance
/freebsd/sys/fs/autofs/ |
H A D | autofs.h | 60 #define AUTOFS_SLOCK(X) sx_slock(&X->am_lock) 61 #define AUTOFS_XLOCK(X) sx_xlock(&X->am_lock) 62 #define AUTOFS_SUNLOCK(X) sx_sunlock(&X->am_lock) 63 #define AUTOFS_XUNLOCK(X) sx_xunlock(&X->am_lock) 64 #define AUTOFS_ASSERT_LOCKED(X) sx_assert(&X->am_lock, SA_LOCKED) 65 #define AUTOFS_ASSERT_XLOCKED(X) sx_assert(&X->am_lock, SA_XLOCKED) 66 #define AUTOFS_ASSERT_UNLOCKED(X) sx_assert(&X->am_lock, SA_UNLOCKED) 89 struct sx am_lock; 87 struct sx am_lock; global() member
|
H A D | autofs_vfsops.c | 89 sx_init(&->am_lock, "autofslk"); in autofs_mount() 172 sx_destroy(&->am_lock); in autofs_unmount()
|
/freebsd/sys/dev/acpica/Osd/ |
H A D | OsdSynch.c | 276 struct mtx am_lock; member 298 mtx_init(&am->am_lock, am->am_name, NULL, MTX_DEF); in AcpiOsCreateMutex() 322 mtx_lock(&am->am_lock); in AcpiOsDeleteMutex() 332 if (mtx_sleep(&am->am_reset, &am->am_lock, in AcpiOsDeleteMutex() 337 mtx_unlock(&am->am_lock); in AcpiOsDeleteMutex() 351 mtx_unlock(&am->am_lock); in AcpiOsDeleteMutex() 353 mtx_destroy(&am->am_lock); in AcpiOsDeleteMutex() 369 mtx_lock(&am->am_lock); in AcpiOsAcquireMutex() 378 mtx_unlock(&am->am_lock); in AcpiOsAcquireMutex() 390 error = mtx_sleep(am, &am->am_lock, PCATCH, "acmtx", 0); in AcpiOsAcquireMutex() [all …]
|