Home
last modified time | relevance | path

Searched refs:cv (Results 1 – 25 of 111) sorted by relevance

12345

/illumos-gate/usr/src/lib/libfakekernel/common/
H A Dcond.c51 *cv = default_cv; in cv_init()
56 cv_destroy(kcondvar_t *cv) in cv_destroy() argument
61 cv_signal(kcondvar_t *cv) in cv_signal() argument
63 (void) _lwp_cond_signal(cv); in cv_signal()
67 cv_broadcast(kcondvar_t *cv) in cv_broadcast() argument
69 (void) _lwp_cond_broadcast(cv); in cv_broadcast()
73 cv_wait(kcondvar_t *cv, kmutex_t *mp) in cv_wait() argument
75 (void) cv__wait(cv, mp, 0); in cv_wait()
79 cv_wait_sig(kcondvar_t *cv, kmutex_t *mp) in cv_wait_sig() argument
81 return (cv__wait(cv, mp, 1)); in cv_wait_sig()
[all …]
/illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/
H A Dfksmbfs_rwlock.c82 (void) cv_wait_sig(&l->cv, &l->lock); in smbfs_rw_enter_sig()
84 cv_wait(&l->cv, &l->lock); in smbfs_rw_enter_sig()
107 if (!cv_wait_sig(&l->cv, &l->lock)) { in smbfs_rw_enter_sig()
109 cv_broadcast(&l->cv); in smbfs_rw_enter_sig()
114 cv_wait(&l->cv, &l->lock); in smbfs_rw_enter_sig()
196 cv_broadcast(&l->cv); in smbfs_rw_exit()
202 cv_broadcast(&l->cv); in smbfs_rw_exit()
226 cv_init(&l->cv, NULL, CV_DEFAULT, NULL); in smbfs_rw_init()
234 cv_destroy(&l->cv); in smbfs_rw_destroy()
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dlwp_cond.c37 _lwp_cond_wait(cond_t *cv, mutex_t *mp) in _lwp_cond_wait() argument
41 error = ___lwp_cond_wait(cv, mp, NULL, 0); in _lwp_cond_wait()
50 _lwp_cond_reltimedwait(cond_t *cv, mutex_t *mp, timespec_t *relts) in _lwp_cond_reltimedwait() argument
57 error = ___lwp_cond_wait(cv, mp, relts, 0); in _lwp_cond_reltimedwait()
66 _lwp_cond_timedwait(cond_t *cv, mutex_t *mp, timespec_t *absts) in _lwp_cond_timedwait() argument
73 return (_lwp_cond_reltimedwait(cv, mp, &tslocal)); in _lwp_cond_timedwait()
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/
H A Dsmbfs_rwlock.c85 if (!cv_wait_sig(&l->cv, &l->lock)) { in smbfs_rw_enter_sig()
94 cv_wait(&l->cv, &l->lock); in smbfs_rw_enter_sig()
120 if (!cv_wait_sig(&l->cv, &l->lock)) { in smbfs_rw_enter_sig()
124 cv_broadcast(&l->cv); in smbfs_rw_enter_sig()
131 cv_wait(&l->cv, &l->lock); in smbfs_rw_enter_sig()
213 cv_broadcast(&l->cv); in smbfs_rw_exit()
219 cv_broadcast(&l->cv); in smbfs_rw_exit()
243 cv_init(&l->cv, NULL, CV_DEFAULT, NULL); in smbfs_rw_init()
251 cv_destroy(&l->cv); in smbfs_rw_destroy()
/illumos-gate/usr/src/cmd/syslogd/
H A Dqueue.c75 (void) pthread_cond_signal(&sleeper->cv); in dataq_enqueue()
97 (void) pthread_cond_init(&wait.cv, NULL); in dataq_dequeue()
101 (void) pthread_cond_wait(&wait.cv, &dataq->lock); in dataq_dequeue()
104 (void) pthread_cond_destroy(&wait.cv); in dataq_dequeue()
112 (void) pthread_cond_signal(&sleeper->cv); in dataq_dequeue()
132 (void) pthread_cond_destroy(&d->cv); in dataq_waiters_destroy()
/illumos-gate/usr/src/cmd/bhyve/test/tests/mevent/
H A Dread_pause.c42 static pthread_cond_t cv = PTHREAD_COND_INITIALIZER; variable
87 pthread_cond_signal(&cv); in munch()
98 pthread_cond_signal(&cv); in tick()
132 pthread_cond_wait(&cv, &mtx); in main()
148 pthread_cond_wait(&cv, &mtx); in main()
H A Dread_disable.c57 static pthread_cond_t cv = PTHREAD_COND_INITIALIZER; variable
81 pthread_cond_signal(&cv); in munch()
95 pthread_cond_signal(&cv); in tick()
137 pthread_cond_wait(&cv, &mtx); in main()
158 pthread_cond_wait(&cv, &mtx); in main()
H A Dread_requeue.c42 static pthread_cond_t cv = PTHREAD_COND_INITIALIZER; variable
66 pthread_cond_signal(&cv); in munch()
103 pthread_cond_wait(&cv, &mtx); in main()
H A Dlists_delete.c50 static pthread_cond_t cv = PTHREAD_COND_INITIALIZER; variable
88 pthread_cond_signal(&cv); in flush_cb()
107 pthread_cond_wait(&cv, &mtx); in flush_and_wait()
H A Dvnode_file.c35 static pthread_cond_t cv = PTHREAD_COND_INITIALIZER; variable
53 pthread_cond_signal(&cv); in callback()
96 pthread_cond_wait(&cv, &mtx); in test_fd()
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_dispq.c269 fmd_event_t *ep, const char *class, uint_t cc, char *cv[]) in fmd_dispq_dispatchv() argument
277 if ((dep = fmd_dispqelem_lookup(root, cv[0])) != NULL) in fmd_dispq_dispatchv()
278 n += fmd_dispq_dispatchv(dep, gids, ep, class, cc - 1, cv + 1); in fmd_dispq_dispatchv()
281 n += fmd_dispq_dispatchv(dep, gids, ep, class, cc - 1, cv + 1); in fmd_dispq_dispatchv()
291 char *buf, size_t buflen, char **cv, uint_t cvlen) in fmd_dispq_tokenize() argument
299 cv[cc++] = p; in fmd_dispq_tokenize()
313 char *c, *cvbuf, **cv; in fmd_dispq_dispatch_gid() local
345 cv = alloca(sizeof (char *) * cvlen); in fmd_dispq_dispatch_gid()
369 cc = fmd_dispq_tokenize(c, cvbuf, cvbuflen, cv, cvlen); in fmd_dispq_dispatch_gid()
371 gids, ep, c, cc, cv); in fmd_dispq_dispatch_gid()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/
H A Dtmxtouch.c45 Tv_t cv; in tmxtouch() local
76 cv.tv_sec = tmxsec(ct); in tmxtouch()
77 cv.tv_nsec = tmxnsec(ct); in tmxtouch()
78 cp = &cv; in tmxtouch()
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dmvcur.c215 int cv, ch; in _mvrel() local
218 cv = _mvvert(cy, ny, doit); in _mvrel()
221 return (cv + ch); in _mvrel()
230 int dy, st_1, st_n, cv; in _mvvert() local
247 cv = _COST(Row_address); in _mvvert()
251 return ((cv < st_1 && cv < st_n) ? cv : in _mvvert()
255 if (cv < st_1 && cv < st_n) in _mvvert()
/illumos-gate/usr/src/cmd/refer/
H A Dglue4.c25 char line[200], *s, argig[100], *cv[50]; in grepcall() local
35 for (cv[nv++] = "fgrep"; c = *inp; inp++) { in grepcall()
42 cv[nv++] = inp; in grepcall()
55 fgrep(nv, cv); in grepcall()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dnss_dbdefs.c400 char **cv, *dptr; in nss_pack_key2str() local
637 cv = ing->arg[j].argv; in nss_pack_key2str()
639 if (*cv) in nss_pack_key2str()
643 cv = ing->groups.argv; in nss_pack_key2str()
645 if (*cv) in nss_pack_key2str()
676 len3 = strlen(*cv) + 1; in nss_pack_key2str()
691 len3 = strlen(*cv) + 1; in nss_pack_key2str()
716 cv = ing->groups.argv; in nss_pack_key2str()
879 char **cv, *bptr; in nss_upack_key2arg() local
1027 ing->arg[j].argv = cv; in nss_upack_key2arg()
[all …]
H A Diconv.c234 iconv_p cv; in iconv_open_all() local
252 cv = iconv_open_private(_GENICONVTBL_INT_PATH, ipath); in iconv_open_all()
253 if (cv != (iconv_p)-1) { in iconv_open_all()
255 return (cv); in iconv_open_all()
279 iconv_p cv; in iconv_search_alias() local
330 cv = iconv_open_all(to_canonical, from_canonical, ipath); in iconv_search_alias()
333 return (cv); in iconv_search_alias()
/illumos-gate/usr/src/common/util/
H A Dqsort.c154 int cv; /* results of compare (bottom / top) */ in qsort_r() local
350 cv = cmp(b_par, m2, arg); in qsort_r()
351 if (cv > 0) { in qsort_r()
354 if (cv == 0) { in qsort_r()
369 cv = cmp(t_par, m2, arg); in qsort_r()
370 if (cv < 0) { in qsort_r()
373 if (cv == 0) { in qsort_r()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/
H A Dconfig.c156 check_var_consistency(struct confvar *cv, void *save, int size) in check_var_consistency() argument
161 prefl = cv[I_AdvPreferredLifetime].cf_value; in check_var_consistency()
162 prefe = cv[I_AdvPreferredExpiration].cf_value; in check_var_consistency()
163 valid = cv[I_AdvValidLifetime].cf_value; in check_var_consistency()
178 (void) memcpy(cv, save, size); in check_var_consistency()
191 tpref = cv[I_TmpPreferredLifetime].cf_value; in check_if_var_consistency()
192 tvalid = cv[I_TmpValidLifetime].cf_value; in check_if_var_consistency()
193 tdesync = cv[I_TmpMaxDesyncFactor].cf_value; in check_if_var_consistency()
194 tregen = cv[I_TmpRegenAdvance].cf_value; in check_if_var_consistency()
199 if (cv[I_TmpAddrsEnabled].cf_value == 0) in check_if_var_consistency()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dcyclic.c634 cyc_coverage_t cv[CY_NCOVERAGE]; in cyccover() local
649 if (mdb_vread(cv, sizeof (cyc_coverage_t) * CY_NCOVERAGE, addr) == -1) { in cyccover()
657 qsort(cv, CY_NCOVERAGE, sizeof (cyc_coverage_t), cyccover_comp); in cyccover()
660 if (cv[i].cyv_why != NULL) { in cyccover()
661 (void) mdb_readstr(c, WHYLEN, (uintptr_t)cv[i].cyv_why); in cyccover()
664 cv[i].cyv_count[CY_HIGH_LEVEL], in cyccover()
665 cv[i].cyv_count[CY_LOCK_LEVEL], in cyccover()
666 cv[i].cyv_passive_count != 0 ? in cyccover()
667 cv[i].cyv_passive_count : in cyccover()
668 cv[i].cyv_count[CY_LOW_LEVEL], in cyccover()
[all …]
/illumos-gate/usr/src/uts/common/syscall/
H A Dlwp_sobj.c74 extern int lwp_cond_signal(lwp_cond_t *cv);
1673 cvwatched = watch_disable_addr((caddr_t)cv, sizeof (*cv), S_WRITE); in lwp_cond_wait()
1736 watch_enable_addr((caddr_t)cv, sizeof (*cv), S_WRITE); in lwp_cond_wait()
1802 (void) lwp_cond_signal(cv); in lwp_cond_wait()
1836 watch_enable_addr((caddr_t)cv, sizeof (*cv), S_WRITE); in lwp_cond_wait()
1846 lwp_cond_signal(lwp_cond_t *cv) in lwp_cond_signal() argument
1860 watched = watch_disable_addr((caddr_t)cv, sizeof (*cv), S_WRITE); in lwp_cond_signal()
1901 watch_enable_addr((caddr_t)cv, sizeof (*cv), S_WRITE); in lwp_cond_signal()
1911 lwp_cond_broadcast(lwp_cond_t *cv) in lwp_cond_broadcast() argument
1925 watched = watch_disable_addr((caddr_t)cv, sizeof (*cv), S_WRITE); in lwp_cond_broadcast()
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Drwstlock.h67 #define RWST_WAIT(cv, lock, f) \ argument
68 ((f) & RWST_SIG ? cv_wait_sig(cv, lock) : (cv_wait(cv, lock), 1))
/illumos-gate/usr/src/uts/sun4v/io/
H A Dds_pri.c106 kcondvar_t cv; member
336 cv_init(&sp->cv, NULL, CV_DEFAULT, NULL); in ds_pri_attach()
382 cv_destroy(&sp->cv); in ds_pri_attach()
423 cv_destroy(&sp->cv); in ds_pri_detach()
460 if (cv_wait_sig(&sp->cv, &sp->lock) == 0) { in ds_pri_open()
545 if (cv_wait_sig(&sp->cv, &sp->lock) == 0) { in ds_pri_read()
628 if (cv_wait_sig(&sp->cv, &sp->lock) == 0) { in ds_pri_ioctl()
659 if (cv_wait_sig(&sp->cv, &sp->lock) == 0) { in ds_pri_ioctl()
756 cv_broadcast(&sp->cv); in ds_pri_reg_handler()
866 cv_broadcast(&sp->cv); in ds_pri_data_handler()
/illumos-gate/usr/src/lib/fm/libldom/sparc/
H A Dldmsvcs_utils.c79 pthread_cond_t cv; member
104 pthread_cond_t cv; member
248 (void) pthread_cond_broadcast(&pollbase.cv); in poller_handle_data()
309 (void) pthread_cond_broadcast(&pollbase.cv); in poller_recv_data()
312 (void) pthread_cond_broadcast(&pollbase.cv); in poller_recv_data()
413 (void) pthread_cond_broadcast(&pollbase.cv); in poller_delete_pending()
467 (void) pthread_cond_wait(&pollbase.cv, in poller_loop()
1134 (void) pthread_cond_broadcast(&lsp->cv); in channel_openreset()
1220 (void) pthread_cond_wait(&cv, &mt); in channel_init()
1242 pthread_cond_init(&root->cv, NULL) != 0) { in channel_init()
[all …]
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/
H A Ddapl_osd.c200 if (0 != pthread_cond_init(&wait_obj->cv, NULL)) { in dapl_os_wait_object_init()
259 &wait_obj->cv, &wait_obj->lock, &future); in dapl_os_wait_object_wait()
275 &wait_obj->cv, &wait_obj->lock); in dapl_os_wait_object_wait()
313 if (0 != pthread_cond_signal(&wait_obj->cv)) { in dapl_os_wait_object_wakeup()
337 if (0 != pthread_cond_destroy(&wait_obj->cv)) { in dapl_os_wait_object_destroy()
/illumos-gate/usr/src/lib/libumem/common/
H A Dstub_stand.c54 cond_wait(cond_t *cv, mutex_t *mutex) in cond_wait() argument
56 umem_panic("attempt to wait on standumem cv %p", cv); in cond_wait()

12345