Home
last modified time | relevance | path

Searched refs:sdev_contents (Results 1 – 11 of 11) sorted by relevance

/illumos-gate/usr/src/uts/common/fs/dev/
H A Dsdev_vnops.c338 rw_enter(&ddv->sdev_contents, RW_READER); in sdev_open()
340 rw_exit(&ddv->sdev_contents); in sdev_open()
344 rw_exit(&ddv->sdev_contents); in sdev_open()
391 ASSERT(RW_READ_HELD(&VTOSDEV(vp)->sdev_contents)); in sdev_read()
458 rw_enter(&parent->sdev_contents, RW_READER); in sdev_getattr()
467 rw_exit(&parent->sdev_contents); in sdev_getattr()
474 rw_exit(&parent->sdev_contents); in sdev_getattr()
534 ASSERT(RW_WRITE_HELD(&dv->sdev_contents)); in sdev_setsecattr()
585 ASSERT(RW_READ_HELD(&dv->sdev_contents)); in sdev_self_access()
606 rw_enter(&dv->sdev_contents, RW_READER); in sdev_access()
[all …]
H A Dsdev_subr.c180 rw_init(&dv->sdev_contents, NULL, RW_DEFAULT, NULL); in i_sdev_node_ctor()
192 rw_destroy(&dv->sdev_contents); in i_sdev_node_dtor()
239 ASSERT(RW_WRITE_HELD(&dv->sdev_contents)); in sdev_set_nodestate()
355 rw_enter(&dv->sdev_contents, RW_WRITER); in sdev_nodeinit()
357 rw_exit(&dv->sdev_contents); in sdev_nodeinit()
380 rw_enter(&dv->sdev_contents, RW_WRITER); in sdev_nodeready()
430 rw_exit(&dv->sdev_contents); in sdev_nodeready()
490 rw_enter(&dv->sdev_contents, RW_WRITER); in sdev_mkroot()
492 rw_exit(&dv->sdev_contents); in sdev_mkroot()
679 ASSERT(RW_WRITE_HELD(&ddv->sdev_contents)); in sdev_mknode()
[all …]
H A Dsdev_netops.c145 rw_enter(&ddv->sdev_contents, RW_WRITER); in devnet_lookup()
174 rw_enter(&dv->sdev_contents, RW_WRITER); in devnet_lookup()
188 rw_exit(&dv->sdev_contents); in devnet_lookup()
192 rw_exit(&ddv->sdev_contents); in devnet_lookup()
196 rw_exit(&ddv->sdev_contents); in devnet_lookup()
214 ASSERT(RW_WRITE_HELD(&ddv->sdev_contents)); in devnet_filldir_datalink()
238 rw_enter(&dv->sdev_contents, RW_WRITER); in devnet_filldir_datalink()
240 rw_exit(&dv->sdev_contents); in devnet_filldir_datalink()
253 ASSERT(RW_READ_HELD(&ddv->sdev_contents)); in devnet_filldir()
254 if (rw_tryupgrade(&ddv->sdev_contents) == 0) { in devnet_filldir()
[all …]
H A Dsdev_plugin.c126 ASSERT(RW_LOCK_HELD(&sdp->sdev_contents)); in sdev_ctx_vtype()
135 ASSERT(RW_LOCK_HELD(&sdp->sdev_contents)); in sdev_ctx_path()
144 ASSERT(RW_LOCK_HELD(&sdp->sdev_contents)); in sdev_ctx_name()
153 ASSERT(RW_LOCK_HELD(&sdp->sdev_contents)); in sdev_ctx_minor()
172 ASSERT(RW_LOCK_HELD(&sdp->sdev_contents)); in sdev_ctx_flags()
202 ASSERT(RW_WRITE_HELD(&sdvp->sdev_contents)); in sdev_plugin_mknode()
234 ASSERT(RW_WRITE_HELD(&sdvp->sdev_contents)); in sdev_plugin_mkdir()
258 ASSERT(RW_WRITE_HELD(&sdvp->sdev_contents)); in sdev_plugin_mknod()
307 rw_enter(&sdp->sdev_contents, RW_READER); in sdev_plugin_validate()
309 rw_exit(&sdp->sdev_contents); in sdev_plugin_validate()
[all …]
H A Dsdev_profile.c150 ASSERT(RW_WRITE_HELD(&dir->sdev_contents)); in prof_mknode()
201 rw_enter(&dir->sdev_contents, RW_READER); in prof_make_dir()
205 rw_exit(&dir->sdev_contents); in prof_make_dir()
209 rw_exit(&dir->sdev_contents); in prof_make_dir()
226 rw_enter(&dir->sdev_contents, RW_WRITER); in prof_make_dir()
229 rw_exit(&dir->sdev_contents); in prof_make_dir()
322 ASSERT(RW_WRITE_HELD(&dir->sdev_contents)); in prof_make_symlinks()
346 ASSERT(RW_WRITE_HELD(&dir->sdev_contents)); in prof_make_maps()
628 ASSERT(RW_WRITE_HELD(&dir->sdev_contents)); in prof_make_names()
669 ASSERT(RW_LOCK_HELD(&ddv->sdev_contents)); in prof_dev_needupdate()
[all …]
H A Dsdev_ipnetops.c144 ASSERT(RW_WRITE_HELD(&ddv->sdev_contents)); in devipnet_filldir_entry()
160 ASSERT(RW_READ_HELD(&ddv->sdev_contents)); in devipnet_filldir()
161 if (rw_tryupgrade(&ddv->sdev_contents) == 0) { in devipnet_filldir()
162 rw_exit(&ddv->sdev_contents); in devipnet_filldir()
163 rw_enter(&ddv->sdev_contents, RW_WRITER); in devipnet_filldir()
169 rw_exit(&ddv->sdev_contents); in devipnet_filldir()
202 rw_downgrade(&ddv->sdev_contents); in devipnet_filldir()
H A Dsdev_zvolops.c556 ASSERT(RW_READ_HELD(&ddv->sdev_contents)); in devzvol_prunedir()
560 if (rw_tryupgrade(&ddv->sdev_contents) == 0) { in devzvol_prunedir()
561 rw_exit(&ddv->sdev_contents); in devzvol_prunedir()
562 rw_enter(&ddv->sdev_contents, RW_WRITER); in devzvol_prunedir()
592 rw_downgrade(&ddv->sdev_contents); in devzvol_prunedir()
679 rw_enter(&parent->sdev_contents, RW_WRITER); in devzvol_mk_ngz_node()
683 rw_exit(&parent->sdev_contents); in devzvol_mk_ngz_node()
709 rw_enter(&parent->sdev_contents, RW_READER); in devzvol_lookup()
713 rw_exit(&parent->sdev_contents); in devzvol_lookup()
765 rw_exit(&parent->sdev_contents); in devzvol_lookup()
[all …]
H A Dsdev_vtops.c105 ASSERT(RW_LOCK_HELD(&(dv->sdev_dotdot)->sdev_contents)); in devvt_validate()
239 ASSERT(RW_WRITE_HELD(&ddv->sdev_contents)); in devvt_create_snode()
291 ASSERT(RW_WRITE_HELD(&ddv->sdev_contents)); in devvt_rebuild_stale_link()
365 if (rw_tryupgrade(&sdvp->sdev_contents) == 0) { in devvt_cleandir()
366 rw_exit(&sdvp->sdev_contents); in devvt_cleandir()
367 rw_enter(&sdvp->sdev_contents, RW_WRITER); in devvt_cleandir()
420 rw_downgrade(&sdvp->sdev_contents); in devvt_cleandir()
422 rw_exit(&sdvp->sdev_contents); in devvt_cleandir()
H A Dsdev_ptsops.c228 if (rw_tryupgrade(&ddv->sdev_contents) == 0) { in devpts_prunedir()
229 rw_exit(&ddv->sdev_contents); in devpts_prunedir()
230 rw_enter(&ddv->sdev_contents, RW_WRITER); in devpts_prunedir()
259 rw_downgrade(&ddv->sdev_contents); in devpts_prunedir()
H A Dsdev_vfsops.c362 rw_enter(&dv->sdev_contents, RW_WRITER); in sdev_mount()
364 rw_exit(&dv->sdev_contents); in sdev_mount()
/illumos-gate/usr/src/uts/common/sys/fs/
H A Dsdev_impl.h158 krwlock_t sdev_contents; /* rw lock for this data structure */ member