Searched defs:mtx (Results 1 - 25 of 245) sorted by relevance

12345678910

/freebsd-head/sys/sys/
H A D_mutex.h47 struct mtx { struct
53 * Members of struct mtx_padalign must mirror members of struct mtx.
54 * mtx_padalign mutexes can use the mtx(9) API transparently without
H A D_unrhdr.h36 struct mtx;
48 struct mtx *mtx; member in struct:unrhdr
49 TAILQ_HEAD(unrfr,unr) ppfree; /* Items to be freed after mtx
/freebsd-head/sys/contrib/openzfs/lib/libspl/os/linux/
H A Dgetexecname.c38 static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; local
42 (void) pthread_mutex_lock(&mtx);
57 (void) pthread_mutex_unlock(&mtx);
/freebsd-head/tools/regression/pthread/mutex_isowned_np/
H A Dmutex_isowned_np.c38 pthread_mutex_t *mtx = arg; local
40 if (pthread_mutex_isowned_np(mtx) != 0) {
52 pthread_mutex_t mtx; local
54 pthread_mutex_init(&mtx, NULL);
55 if (pthread_mutex_isowned_np(&mtx) != 0) {
60 pthread_mutex_lock(&mtx);
61 if (pthread_mutex_isowned_np(&mtx) == 0) {
66 pthread_create(&thr, NULL, thread, &mtx);
68 pthread_mutex_unlock(&mtx);
69 if (pthread_mutex_isowned_np(&mtx) !
[all...]
/freebsd-head/tools/regression/pthread/unwind/
H A Dcond_wait_cancel.cpp11 pthread_mutex_t mtx; variable
19 pthread_mutex_lock(&mtx);
20 pthread_cond_wait(&cv, &mtx);
21 pthread_mutex_unlock(&mtx);
31 pthread_mutex_init(&mtx, NULL);
H A Dcond_wait_cancel2.cpp16 pthread_mutex_t mtx; variable
23 pthread_mutex_lock(&mtx);
24 pthread_cond_wait(&cv, &mtx);
25 pthread_mutex_unlock(&mtx);
48 pthread_mutex_init(&mtx, NULL);
/freebsd-head/usr.bin/mkuzip/
H A Dmkuz_fqueue.h30 pthread_mutex_t mtx; member in struct:mkuz_fifo_queue
/freebsd-head/contrib/netbsd-tests/lib/libpthread/dlopen/dso/
H A Dh_pthread_dlopen.c59 testf_dso_mutex_lock(pthread_mutex_t *mtx) argument
61 ATF_REQUIRE(mtx != NULL);
62 ATF_REQUIRE(pthread_mutex_lock(mtx) == 0);
68 testf_dso_mutex_unlock(pthread_mutex_t *mtx) argument
70 ATF_REQUIRE(mtx != NULL);
71 ATF_REQUIRE(pthread_mutex_unlock(mtx) == 0);
/freebsd-head/contrib/netbsd-tests/lib/libpthread/dlopen/
H A Dt_dlopen.c77 pthread_mutex_t mtx; local
81 ATF_REQUIRE(pthread_mutex_init(&mtx, NULL) == 0);
82 ATF_REQUIRE(pthread_mutex_lock(&mtx) == 0);
92 ATF_REQUIRE(pthread_mutex_unlock(&mtx) == 0);
96 pthread_mutex_destroy(&mtx);
109 pthread_mutex_t mtx; local
113 ATF_REQUIRE(pthread_mutex_init(&mtx, NULL) == 0);
114 ATF_REQUIRE(pthread_mutex_lock(&mtx) == 0);
123 ATF_REQUIRE(testf_dso_mutex_unlock(&mtx) == 0xcafe);
127 pthread_mutex_destroy(&mtx);
141 pthread_mutex_t mtx; local
[all...]
/freebsd-head/contrib/netbsd-tests/rump/kernspace/
H A Dlockme.c52 kmutex_t mtx; local
56 mutex_init(&mtx, MUTEX_DEFAULT, IPL_NONE);
60 mutex_enter(&mtx);
61 mutex_enter(&mtx);
76 mutex_init(&mtx, MUTEX_DEFAULT, IPL_NONE);
79 mutex_destroy(&mtx);
80 mutex_destroy(&mtx);
83 mutex_enter(&mtx);
84 mutex_destroy(&mtx);
H A Dalloc.c51 static kmutex_t mtx; variable
60 mutex_enter(&mtx);
65 cv_wait(&kcv, &mtx);
66 mutex_exit(&mtx);
85 mutex_init(&mtx, MUTEX_DEFAULT, IPL_NONE);
103 mutex_enter(&mtx);
105 cv_wait(&kcv, &mtx);
106 mutex_exit(&mtx);
112 mutex_enter(&mtx);
115 mutex_exit(&mtx);
[all...]
H A Dthread.c72 static kmutex_t mtx; variable
80 mutex_enter(&mtx);
83 mutex_exit(&mtx);
94 mutex_init(&mtx, MUTEX_DEFAULT, IPL_NONE);
101 mutex_enter(&mtx);
103 cv_wait(&cv, &mtx);
104 mutex_exit(&mtx);
/freebsd-head/lib/libstdthreads/
H A Dcnd.c79 cnd_timedwait(cnd_t *restrict cond, mtx_t *restrict mtx, argument
83 switch (pthread_cond_timedwait(cond, mtx, ts)) {
94 cnd_wait(cnd_t *cond, mtx_t *mtx) argument
97 if (pthread_cond_wait(cond, mtx) != 0)
H A Dmtx.c40 mtx_destroy(mtx_t *mtx) argument
43 (void)pthread_mutex_destroy(mtx);
47 mtx_init(mtx_t *mtx, int type) argument
69 if (pthread_mutex_init(mtx, &attr) != 0)
75 mtx_lock(mtx_t *mtx) argument
78 if (pthread_mutex_lock(mtx) != 0)
84 mtx_timedlock(mtx_t *restrict mtx, const struct timespec *restrict ts) argument
87 switch (pthread_mutex_timedlock(mtx, ts)) {
98 mtx_trylock(mtx_t *mtx) argument
101 switch (pthread_mutex_trylock(mtx)) {
112 mtx_unlock(mtx_t *mtx) argument
[all...]
/freebsd-head/sys/dev/fdt/
H A Dsimple_mfd.h39 struct mtx mtx; member in struct:simple_mfd_softc
/freebsd-head/sys/contrib/openzfs/lib/libspl/os/freebsd/
H A Dgetexecname.c38 static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; local
42 (void) pthread_mutex_lock(&mtx);
69 (void) pthread_mutex_unlock(&mtx);
/freebsd-head/sys/dev/extres/syscon/
H A Dsyscon_generic.h39 struct mtx mtx; member in struct:syscon_generic_softc
/freebsd-head/sys/dev/firewire/
H A Dif_fwevar.h53 struct mtx mtx; member in struct:fwe_softc
55 #define FWE_LOCK(fwe) mtx_lock(&(fwe)->mtx)
56 #define FWE_UNLOCK(fwe) mtx_unlock(&(fwe)->mtx)
/freebsd-head/sys/dev/uart/
H A Duart_bus_scc.c73 uintptr_t mtx; local
78 if (BUS_READ_IVAR(parent, dev, SCC_IVAR_HWMTX, &mtx))
80 sc->sc_hwmtx = (struct mtx *)(void *)mtx;
/freebsd-head/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_persistent_allocator.h29 StaticSpinMutex mtx; // Protects alloc of new blocks for region allocator. member in class:__sanitizer::PersistentAllocator
51 SpinMutexLock l(&mtx);
/freebsd-head/sys/compat/linuxkpi/common/include/linux/
H A Dxarray.h49 #define XA_ASSERT_LOCKED(xa) mtx_assert(&(xa)->mtx, MA_OWNED)
50 #define xa_lock(xa) mtx_lock(&(xa)->mtx)
51 #define xa_unlock(xa) mtx_unlock(&(xa)->mtx)
55 struct mtx mtx; /* internal mutex */ member in struct:xarray
H A Dhrtimer.h49 struct mtx mtx; member in struct:hrtimer
/freebsd-head/sys/dev/bhnd/cores/pcie2/
H A Dbhnd_pcie2_var.h82 struct mtx mtx; /**< state mutex used to protect member in struct:bhnd_pcie2_softc
91 mtx_init(&(sc)->mtx, device_get_nameunit((sc)->dev), \
93 #define BHND_PCIE2_LOCK(sc) mtx_lock(&(sc)->mtx)
94 #define BHND_PCIE2_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
95 #define BHND_PCIE2_LOCK_ASSERT(sc, what) mtx_assert(&(sc)->mtx, what)
96 #define BHND_PCIE2_LOCK_DESTROY(sc) mtx_destroy(&(sc)->mtx)
/freebsd-head/sys/dev/vnic/
H A Dthunder_mdio_var.h55 struct mtx mtx; member in struct:thunder_mdio_softc
/freebsd-head/sys/dev/ixl/
H A Dixl_iw_int.h62 struct mtx mtx; member in struct:ixl_iw_state

Completed in 150 milliseconds

12345678910