Home
last modified time | relevance | path

Searched refs:ddv (Results 1 – 14 of 14) sorted by relevance

/titanic_44/usr/src/uts/common/fs/dev/
H A Dsdev_subr.c290 sdev_nodeinit(struct sdev_node *ddv, char *nm, struct sdev_node **newdv, in sdev_nodeinit() argument
311 len = strlen(ddv->sdev_path) + strlen(nm) + 2; in sdev_nodeinit()
313 (void) snprintf(dv->sdev_path, len, "%s/%s", ddv->sdev_path, nm); in sdev_nodeinit()
319 vp->v_vfsp = SDEVTOV(ddv)->v_vfsp; in sdev_nodeinit()
327 vn_setops(vp, vn_getops(SDEVTOV(ddv))); in sdev_nodeinit()
340 dv->sdev_flags = ddv->sdev_flags; /* inherit from the parent first */ in sdev_nodeinit()
344 if (SDEV_IS_GLOBAL(ddv)) { in sdev_nodeinit()
806 sdev_mknode(struct sdev_node *ddv, char *nm, struct sdev_node **newdv, in sdev_mknode() argument
815 ASSERT(RW_WRITE_HELD(&ddv->sdev_contents)); in sdev_mknode()
821 if (ddv->sdev_state == SDEV_ZOMBIE) { in sdev_mknode()
[all …]
H A Dsdev_netops.c116 struct sdev_node *ddv = VTOSDEV(dvp); in devnet_lookup() local
123 if (SDEVTOV(ddv)->v_type != VDIR) in devnet_lookup()
131 *vpp = SDEVTOV(ddv); in devnet_lookup()
140 *vpp = SDEVTOV(ddv->sdev_dotdot); in devnet_lookup()
145 rw_enter(&ddv->sdev_contents, RW_WRITER); in devnet_lookup()
150 if ((dv = sdev_cache_lookup(ddv, nm)) != NULL) { in devnet_lookup()
159 if (ddv->sdev_state == SDEV_ZOMBIE) in devnet_lookup()
166 error = sdev_mknode(ddv, nm, &dv, &vattr, NULL, NULL, cred, SDEV_READY); in devnet_lookup()
192 rw_exit(&ddv->sdev_contents); in devnet_lookup()
196 rw_exit(&ddv->sdev_contents); in devnet_lookup()
[all …]
H A Dsdev_ipnetops.c83 devipnet_create_rvp(struct sdev_node *ddv, char *nm, in devipnet_create_rvp() argument
140 struct sdev_node *ddv = arg; in devipnet_filldir_entry() local
144 ASSERT(RW_WRITE_HELD(&ddv->sdev_contents)); in devipnet_filldir_entry()
146 if ((dv = sdev_cache_lookup(ddv, (char *)name)) == NULL) { in devipnet_filldir_entry()
148 if (sdev_mknode(ddv, (char *)name, &dv, &vattr, NULL, NULL, in devipnet_filldir_entry()
156 devipnet_filldir(struct sdev_node *ddv) in devipnet_filldir() argument
160 ASSERT(RW_READ_HELD(&ddv->sdev_contents)); in devipnet_filldir()
161 if (rw_tryupgrade(&ddv->sdev_contents) == NULL) { in devipnet_filldir()
162 rw_exit(&ddv->sdev_contents); in devipnet_filldir()
163 rw_enter(&ddv->sdev_contents, RW_WRITER); in devipnet_filldir()
[all …]
H A Dsdev_profile.c589 struct sdev_node *ddv = (struct sdev_node *)arg; in prof_make_name_glob() local
591 if (prof_name_matched(nm, ddv)) in prof_make_name_glob()
592 prof_lookup_globaldev(ddv, ddv->sdev_origin, nm, nm); in prof_make_name_glob()
600 struct sdev_node *ddv = (struct sdev_node *)arg; in prof_make_name_zone() local
602 if (prof_zone_matched(nm, ddv)) in prof_make_name_zone()
603 prof_lookup_globaldev(ddv, ddv->sdev_origin, nm, nm); in prof_make_name_zone()
609 prof_make_names_walk(struct sdev_node *ddv, int (*cb)(char *, void *)) in prof_make_names_walk() argument
613 gdir = ddv->sdev_origin; in prof_make_names_walk()
616 walk_dir(SDEVTOV(gdir), (void *)ddv, cb); in prof_make_names_walk()
661 prof_dev_needupdate(sdev_node_t *ddv) in prof_dev_needupdate() argument
[all …]
H A Dsdev_vtops.c151 devvt_create_rvp(struct sdev_node *ddv, char *nm, in devvt_create_rvp() argument
230 devvt_create_snode(struct sdev_node *ddv, char *nm, struct cred *cred, int type) in devvt_create_snode() argument
239 ASSERT(RW_WRITE_HELD(&ddv->sdev_contents)); in devvt_create_snode()
249 error = sdev_mknode(ddv, nm, &sdv, NULL, NULL, NULL, cred, SDEV_INIT); in devvt_create_snode()
261 error = sdev_mknode(ddv, nm, &sdv, vap, NULL, in devvt_create_snode()
269 error = sdev_mknode(ddv, nm, &sdv, vap, NULL, in devvt_create_snode()
287 devvt_rebuild_stale_link(struct sdev_node *ddv, struct sdev_node *dv) in devvt_rebuild_stale_link() argument
291 ASSERT(RW_WRITE_HELD(&ddv->sdev_contents)); in devvt_rebuild_stale_link()
317 devvt_prunedir(struct sdev_node *ddv) in devvt_prunedir() argument
323 ASSERT(ddv->sdev_flags & SDEV_VTOR); in devvt_prunedir()
[all …]
H A Dsdev_ptsops.c164 devpts_create_rvp(struct sdev_node *ddv, char *nm, in devpts_create_rvp() argument
220 devpts_prunedir(struct sdev_node *ddv) in devpts_prunedir() argument
226 ASSERT(ddv->sdev_flags & SDEV_VTOR); in devpts_prunedir()
228 vtor = (int (*)(struct sdev_node *))sdev_get_vtor(ddv); in devpts_prunedir()
231 if (rw_tryupgrade(&ddv->sdev_contents) == NULL) { in devpts_prunedir()
232 rw_exit(&ddv->sdev_contents); in devpts_prunedir()
233 rw_enter(&ddv->sdev_contents, RW_WRITER); in devpts_prunedir()
236 for (dv = SDEV_FIRST_ENTRY(ddv); dv; dv = next) { in devpts_prunedir()
237 next = SDEV_NEXT_ENTRY(ddv, dv); in devpts_prunedir()
258 (void) sdev_cache_update(ddv, &dv, dv->sdev_name, in devpts_prunedir()
[all …]
H A Dsdev_zvolops.c393 devzvol_create_dir(struct sdev_node *ddv, char *nm, void **arg, in devzvol_create_dir() argument
399 sdcmn_err13(("create_dir (%s) (%s) '%s'", ddv->sdev_name, in devzvol_create_dir()
400 ddv->sdev_path, nm)); in devzvol_create_dir()
401 ASSERT(strncmp(ddv->sdev_path, ZVOL_DIR, in devzvol_create_dir()
413 devzvol_create_link(struct sdev_node *ddv, char *nm, in devzvol_create_link() argument
422 sdcmn_err13(("create_link (%s) (%s) '%s'", ddv->sdev_name, in devzvol_create_link()
423 ddv->sdev_path, nm)); in devzvol_create_link()
424 dsname = devzvol_make_dsname(ddv->sdev_path, nm); in devzvol_create_link()
439 for (x = ddv->sdev_path; x = strchr(x, '/'); x++) in devzvol_create_link()
443 if (strncmp(ddv->sdev_path, ZVOL_FULL_RDEV_DIR, in devzvol_create_link()
[all …]
H A Dsdev_vnops.c322 struct sdev_node *ddv = dv->sdev_dotdot; in sdev_open() local
337 ASSERT(ddv); in sdev_open()
338 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()
H A Dsdev_comm.c441 sdev_devfsadmd_thread(struct sdev_node *ddv, struct sdev_node *dv, in sdev_devfsadmd_thread() argument
/titanic_44/usr/src/uts/common/fs/devfs/
H A Ddevfs_subr.c331 dv_mkdir(struct dv_node *ddv, dev_info_t *devi, char *nm) in dv_mkdir() argument
349 vp->v_vfsp = DVTOV(ddv)->v_vfsp; in dv_mkdir()
351 vp->v_rdev = DVTOV(ddv)->v_rdev; in dv_mkdir()
352 vn_setops(vp, vn_getops(DVTOV(ddv))); in dv_mkdir()
360 dv->dv_dotdot = ddv; in dv_mkdir()
382 dv_mknod(struct dv_node *ddv, dev_info_t *devi, char *nm, in dv_mknod() argument
400 vp->v_vfsp = DVTOV(ddv)->v_vfsp; in dv_mknod()
403 vn_setops(vp, vn_getops(DVTOV(ddv))); in dv_mknod()
415 dv->dv_dotdot = ddv; in dv_mknod()
495 dv_findbyname(struct dv_node *ddv, char *nm) in dv_findbyname() argument
[all …]
H A Ddevfs_vnops.c345 struct dv_node *ddv; in devfs_setattr() local
514 ddv = dv->dv_dotdot; in devfs_setattr()
515 ASSERT(ddv->dv_attrvp); in devfs_setattr()
516 error = VOP_REMOVE(ddv->dv_attrvp, in devfs_setattr()
520 ddv->dv_name, dv->dv_name, error)); in devfs_setattr()
865 struct dv_node *ddv, *dv; in devfs_readdir() local
874 ddv = VTODV(dvp); in devfs_readdir()
876 ddv->dv_name, uiop->uio_loffset, uiop->uio_iov->iov_len)); in devfs_readdir()
877 ASSERT(ddv->dv_attr || ddv->dv_attrvp); in devfs_readdir()
878 ASSERT(RW_READ_HELD(&ddv->dv_contents)); in devfs_readdir()
[all …]
/titanic_44/usr/src/uts/common/sys/fs/
H A Ddv_node.h160 #define DV_FIRST_ENTRY(ddv) avl_first(&(ddv)->dv_entries) argument
161 #define DV_NEXT_ENTRY(ddv, dv) AVL_NEXT(&(ddv)->dv_entries, (dv)) argument
H A Dsdev_impl.h180 #define SDEV_FIRST_ENTRY(ddv) avl_first(&(ddv)->sdev_entries) argument
181 #define SDEV_NEXT_ENTRY(ddv, dv) AVL_NEXT(&(ddv)->sdev_entries, (dv)) argument
596 #define SD_TRACE_FAILED_LOOKUP(ddv, nm, retried) \ argument
600 (ddv)->sdev_name, (nm), curproc->p_user.u_comm, \
604 #define SD_TRACE_FAILED_LOOKUP(ddv, nm, retried) argument
/titanic_44/usr/src/cmd/svc/startd/
H A Dgraph.c2873 graph_vertex_t *ddv = e->ge_vertex; in should_be_in_subgraph() local
2875 if (ddv->gv_type == GVT_GROUP && in should_be_in_subgraph()
2876 ddv->gv_depgroup == DEPGRP_EXCLUDE_ALL) in should_be_in_subgraph()
2879 if (ddv->gv_type == GVT_GROUP && in should_be_in_subgraph()
2880 ddv->gv_depgroup == DEPGRP_OPTIONAL_ALL && in should_be_in_subgraph()