Home
last modified time | relevance | path

Searched refs:rwlock (Results 1 – 25 of 51) sorted by relevance

123

/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/
H A Dbind.c62 krwlock_t rwlock; member
104 rw_destroy(&bucketp->rwlock); in rdsv3_bind_exit()
127 rw_init(&bucketp->rwlock, NULL, RW_DRIVER, NULL); in rdsv3_find_ip_bucket()
151 rw_enter(&conn->c_bucketp->rwlock, RW_READER); in rdsv3_find_bound()
158 rw_exit(&conn->c_bucketp->rwlock); in rdsv3_find_bound()
190 rw_enter(&bucketp->rwlock, RW_WRITER); in rdsv3_add_bound()
215 rw_exit(&bucketp->rwlock); in rdsv3_add_bound()
239 rw_enter(&bucketp->rwlock, RW_WRITER); in rdsv3_remove_bound()
243 rw_exit(&bucketp->rwlock); in rdsv3_remove_bound()
H A Dib_rdma.c103 rw_enter(&rds_ibdev->rwlock, RW_READER); in rdsv3_ib_get_device()
107 rw_exit(&rds_ibdev->rwlock); in rdsv3_ib_get_device()
111 rw_exit(&rds_ibdev->rwlock); in rdsv3_ib_get_device()
133 rw_enter(&rds_ibdev->rwlock, RW_WRITER); in rdsv3_ib_add_ipaddr()
135 rw_exit(&rds_ibdev->rwlock); in rdsv3_ib_add_ipaddr()
149 rw_enter(&rds_ibdev->rwlock, RW_WRITER); in rdsv3_ib_remove_ipaddr()
158 rw_exit(&rds_ibdev->rwlock); in rdsv3_ib_remove_ipaddr()
H A Dib.c102 rw_init(&rds_ibdev->rwlock, NULL, RW_DRIVER, NULL); in rdsv3_ib_add_one()
188 rw_destroy(&rds_ibdev->rwlock); in rdsv3_ib_add_one()
248 rw_destroy(&rds_ibdev->rwlock); in rdsv3_ib_remove_one()
/illumos-gate/usr/src/uts/sun4v/io/
H A Dmdeg.c196 rw_destroy(&mdeg.rwlock); in mdeg_fini()
220 ASSERT(RW_WRITE_HELD(&mdeg.rwlock)); in mdeg_alloc_clnt()
435 rw_enter(&mdeg.rwlock, RW_WRITER); in mdeg_register()
460 rw_exit(&mdeg.rwlock); in mdeg_register()
464 rw_exit(&mdeg.rwlock); in mdeg_register()
480 rw_enter(&mdeg.rwlock, RW_WRITER); in mdeg_unregister()
484 rw_exit(&mdeg.rwlock); in mdeg_unregister()
499 rw_exit(&mdeg.rwlock); in mdeg_unregister()
519 rw_enter(&mdeg.rwlock, RW_READER); in mdeg_notify_clients()
564 rw_exit(&mdeg.rwlock); in mdeg_notify_clients()
[all …]
H A Dvnet_gen.c1136 WRITE_ENTER(&plistp->rwlock); in vgen_detach_ports()
1140 RW_EXIT(&plistp->rwlock); in vgen_detach_ports()
2253 RW_EXIT(&plistp->rwlock); in vgen_remove_port()
2258 RW_EXIT(&plistp->rwlock); in vgen_remove_port()
2327 RW_EXIT(&plistp->rwlock); in vgen_port_attach()
2397 READ_ENTER(&plistp->rwlock); in vgen_update_port()
2402 RW_EXIT(&plistp->rwlock); in vgen_update_port()
2419 RW_EXIT(&plistp->rwlock); in vgen_update_port()
2445 RW_EXIT(&plistp->rwlock); in vgen_update_port()
3537 RW_EXIT(&plistp->rwlock); in vgen_dds_tx()
[all …]
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_intaddr.c44 rwlock_t rwlock; /* used to serialize get and destroy */ member
112 (void) rwlock_init(&int_addr->rwlock, USYNC_THREAD, NULL); in _nscd_add_int_addr()
154 addr_rwlock = &int_addr->rwlock; in _nscd_is_int_addr()
215 addr_rwlock = &int_addr->rwlock; in _nscd_del_int_addr()
H A Dnscd_access.c499 rwlock_t *rwlock = NULL; in _nscd_alloc() local
515 if ((rwlock = (rwlock_t *)calloc(1, sizeof (rwlock_t))) == in _nscd_alloc()
521 (void) rwlock_init(rwlock, USYNC_THREAD, NULL); in _nscd_alloc()
528 free(rwlock); in _nscd_alloc()
540 access->data_rwlock = rwlock; in _nscd_alloc()
/illumos-gate/usr/src/lib/libc_db/common/
H A Dthread_db.c45 rwlock_t rwlock; member
51 rwlock_t rwlock; member
464 (void) rw_unlock(&ta_p->rwlock); in ph_lock_ta()
468 (void) rw_unlock(&ta_p->rwlock); in ph_lock_ta()
514 (void) rw_unlock(&ta_p->rwlock); in ph_unlock()
544 (void) rw_unlock(&ta_p->rwlock); in __td_ta_delete()
560 (void) rw_unlock(&ta_p->rwlock); in __td_ta_delete()
2397 mutex_t *rwlock = &rw_m.rwl.mutex; in lowner_cb() local
2574 &generic_so.rwlock, sizeof (generic_so.rwlock)) != PS_OK) in sync_get_info_common()
2836 sync_stats.un.rwlock.rw_rdlock; in __td_sync_get_stats()
[all …]
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dpthr_rwlock.c103 pthread_rwlock_init(pthread_rwlock_t *_RESTRICT_KYWD rwlock, in pthread_rwlock_init() argument
116 return (rwlock_init((rwlock_t *)rwlock, type, NULL)); in pthread_rwlock_init()
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dautod_readdir.c110 rw_wrlock(&rdcp->rwlock); in do_readdir()
133 rw_rdlock(&rdcp->rwlock); in do_readdir()
206 rw_unlock(&rdcp->rwlock); in do_readdir()
240 assert(RW_LOCK_HELD(&rdcp->rwlock)); in create_dirents()
381 (void) rwlock_init(&p->rwlock, USYNC_THREAD, NULL); in autofs_rddir_cache_enter()
518 assert(RW_LOCK_HELD(&rdcp->rwlock)); in build_dir_entry_list()
H A Dautod_lookup.c82 if (rw_tryrdlock(&rdcp->rwlock) == 0) { in do_lookup1()
84 rw_unlock(&rdcp->rwlock); in do_lookup1()
H A Dautomount.h215 rwlock_t rwlock; /* protects 'full' and 'next' */ member
/illumos-gate/usr/src/boot/sys/sys/
H A D_rwlock.h43 struct rwlock { struct
/illumos-gate/usr/src/lib/libpicltree/
H A Dptree_impl.h126 rwlock_t rwlock; /* protects properties */ member
172 #define node_lock u.node.rwlock
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dsobj.h42 int rwlock(uintptr_t, uint_t, int, const mdb_arg_t *);
/illumos-gate/usr/src/boot/include/netinet/
H A Din_pcb.h242 struct rwlock inp_lock;
329 struct rwlock ipi_lock;
367 struct rwlock ipi_hash_lock;
403 struct rwlock ipi_list_lock;
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/frudata/
H A Dfru_data_impl.h109 pthread_rwlock_t rwlock; member
H A Dfru_data.c112 (void) pthread_rwlock_unlock(&cont_hash->rwlock); in unlock_container_lock()
180 return (pthread_rwlock_trywrlock(&cont_obj->rwlock)); in lock_readwrite_lock()
183 return (pthread_rwlock_tryrdlock(&cont_obj->rwlock)); in lock_readwrite_lock()
301 (void) pthread_rwlock_init(&cont_tbl->rwlock, NULL); in alloc_container_table()
1919 while (pthread_rwlock_trywrlock(&cont_tbl->rwlock) == EBUSY) { in frudata_write_section()
2138 (void) pthread_rwlock_wrlock(&cont_tbl->rwlock); in delete_frudata_props()
2140 (void) pthread_rwlock_unlock(&cont_tbl->rwlock); in delete_frudata_props()
2448 (void) pthread_rwlock_wrlock(&cont_tbl->rwlock); in free_hash_table()
2450 (void) pthread_rwlock_unlock(&cont_tbl->rwlock); in free_hash_table()
/illumos-gate/usr/src/lib/libfakekernel/
H A DMakefile.com36 rwlock.o \
/illumos-gate/usr/src/uts/common/io/nge/
H A Dnge_main.c1135 rw_enter(ngep->rwlock, RW_WRITER); in nge_m_stop()
1151 rw_exit(ngep->rwlock); in nge_m_stop()
1175 rw_enter(ngep->rwlock, RW_WRITER); in nge_m_start()
1191 rw_exit(ngep->rwlock); in nge_m_start()
2284 rw_destroy(ngep->rwlock); in nge_unattach()
2326 rw_enter(ngep->rwlock, RW_WRITER); in nge_resume()
2339 rw_exit(ngep->rwlock); in nge_resume()
2363 rw_exit(ngep->rwlock); in nge_resume()
2564 rw_enter(ngep->rwlock, RW_WRITER); in nge_suspend()
2568 rw_exit(ngep->rwlock); in nge_suspend()
[all …]
H A Dnge_tx.c658 rw_enter(ngep->rwlock, RW_READER); in nge_m_tx()
675 rw_exit(ngep->rwlock); in nge_m_tx()
/illumos-gate/usr/src/lib/libc/inc/
H A Dtdb_agent.h146 tdb_rwlock_stats_t rwlock; member
/illumos-gate/usr/src/uts/common/io/usbgem/
H A Dusbgem.c868 uint_t rwlock; in usbgem_tx_timeout() local
883 rwlock = RW_READER; in usbgem_tx_timeout()
894 if (rwlock == RW_READER) { in usbgem_tx_timeout()
899 rwlock = RW_WRITER; in usbgem_tx_timeout()
1379 uint_t rwlock; in usbgem_mii_link_check() local
1385 rwlock = RW_WRITER; in usbgem_mii_link_check()
1387 rwlock = RW_READER; in usbgem_mii_link_check()
1390 rw_enter(&dp->dev_state_lock, rwlock); in usbgem_mii_link_check()
1871 if (rwlock == RW_READER) { in usbgem_mii_link_check()
1888 if (rwlock == RW_READER) { in usbgem_mii_link_check()
[all …]
/illumos-gate/usr/src/man/man9f/
H A DMakefile449 rwlock.9f \
1983 rw_destroy.9f := LINKSRC = rwlock.9f
1984 rw_downgrade.9f := LINKSRC = rwlock.9f
1985 rw_enter.9f := LINKSRC = rwlock.9f
1986 rw_exit.9f := LINKSRC = rwlock.9f
1987 rw_init.9f := LINKSRC = rwlock.9f
1988 rw_read_locked.9f := LINKSRC = rwlock.9f
1989 rw_tryenter.9f := LINKSRC = rwlock.9f
1990 rw_tryupgrade.9f := LINKSRC = rwlock.9f
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dvnet_gen.h410 krwlock_t rwlock; /* sync access to the port list */ member

123