Home
last modified time | relevance | path

Searched refs:linkp (Results 1 – 22 of 22) sorted by relevance

/titanic_50/usr/src/cmd/dlmgmtd/
H A Ddlmgmt_door.c94 dlmgmt_link_t *linkp = avl_first(&dlmgmt_id_avl); in dlmgmt_getlink_by_dev() local
96 for (; linkp != NULL; linkp = AVL_NEXT(&dlmgmt_id_avl, linkp)) { in dlmgmt_getlink_by_dev()
97 if (link_is_visible(linkp, zoneid) && in dlmgmt_getlink_by_dev()
98 (linkp->ll_class == DATALINK_CLASS_PHYS) && in dlmgmt_getlink_by_dev()
99 linkattr_equal(&(linkp->ll_head), FDEVNAME, devname, in dlmgmt_getlink_by_dev()
101 return (linkp); in dlmgmt_getlink_by_dev()
148 dlmgmt_link_t *linkp; in dlmgmt_upcall_create() local
176 if ((class == DATALINK_CLASS_PHYS) && (linkp = in dlmgmt_upcall_create()
178 if (linkattr_equal(&(linkp->ll_head), FPHYMAJ, in dlmgmt_upcall_create()
180 linkattr_equal(&(linkp->ll_head), FPHYINST, in dlmgmt_upcall_create()
[all …]
H A Ddlmgmt_util.c315 linkattr_destroy(dlmgmt_link_t *linkp) in linkattr_destroy() argument
319 for (attrp = linkp->ll_head; attrp != NULL; attrp = next) { in linkattr_destroy()
355 link_destroy(dlmgmt_link_t *linkp) in link_destroy() argument
357 linkattr_destroy(linkp); in link_destroy()
358 free(linkp); in link_destroy()
367 link_activate(dlmgmt_link_t *linkp) in link_activate() argument
372 if (zone_check_datalink(&zoneid, linkp->ll_linkid) == 0) { in link_activate()
377 if (zoneid != linkp->ll_zoneid) { in link_activate()
378 if (link_by_name(linkp->ll_link, zoneid) != NULL) { in link_activate()
383 if (avl_find(&dlmgmt_name_avl, linkp, NULL) != NULL) in link_activate()
[all …]
H A Ddlmgmt_db.c542 dlmgmt_db_update(dlmgmt_db_op_t op, const char *entryname, dlmgmt_link_t *linkp, in dlmgmt_db_update() argument
551 if ((req = dlmgmt_db_req_alloc(op, entryname, linkp->ll_linkid, in dlmgmt_db_update()
552 linkp->ll_zoneid, flags, &err)) == NULL) in dlmgmt_db_update()
708 parse_linkprops(char *buf, dlmgmt_link_t *linkp) in parse_linkprops() argument
754 linkp->ll_linkid = in parse_linkprops()
759 (void) snprintf(linkp->ll_link, in parse_linkprops()
764 linkp->ll_class = in parse_linkprops()
769 linkp->ll_media = in parse_linkprops()
777 if (linkattr_set(&(linkp->ll_head), attr_name, in parse_linkprops()
818 if (linkp->ll_class == 0x60) { in parse_linkprops()
[all …]
/titanic_50/usr/src/cmd/fs.d/nfs/nfslog/
H A Ddbtab.c104 linkinfo_ent *linkp, char *str);
112 int *linksizep, linkinfo_ent *linkp, void **cookiep,
116 fhlist_ent *fhrecp, linkinfo_ent *linkp, int *errorp);
404 debug_print_linkinfo(FILE *fp, linkinfo_ent *linkp) in debug_print_linkinfo() argument
406 if (linkp == NULL) in debug_print_linkinfo()
409 debug_opaque_print(fp, (void *)&linkp->dfh, sizeof (linkp->dfh)); in debug_print_linkinfo()
410 (void) fprintf(fp, "\nname: '%s'", LN_NAME(linkp)); in debug_print_linkinfo()
412 linkp->mtime, linkp->atime, linkp->flags, linkp->reclen); in debug_print_linkinfo()
414 linkp->fhkey_offset, linkp->name_offset, linkp->next_offset, in debug_print_linkinfo()
415 linkp->prev_offset); in debug_print_linkinfo()
[all …]
/titanic_50/usr/src/lib/libdevinfo/
H A Ddevinfo_devlink.h368 static int walk_db(struct di_devlink_handle *hdp, link_desc_t *linkp);
369 static int walk_all_links(struct di_devlink_handle *hdp, link_desc_t *linkp);
371 link_desc_t *linkp);
372 static int visit_link(struct di_devlink_handle *hdp, link_desc_t *linkp,
376 link_desc_t *linkp);
378 link_desc_t *linkp);
379 static void walk_all_cache(di_devlink_handle_t hdp, link_desc_t *linkp);
383 static int walk_dev(struct di_devlink_handle *hdp, link_desc_t *linkp);
391 static int check_args(link_desc_t *linkp);
H A Ddevinfo_devlink.c2105 check_args(link_desc_t *linkp) in check_args() argument
2107 if (linkp->fcn == NULL) in check_args()
2110 if (!link_flag(linkp->flags)) { in check_args()
2118 if (linkp->minor_path) { in check_args()
2119 if (linkp->minor_path[0] != '/' || in check_args()
2120 minor_colon(linkp->minor_path) == NULL) { in check_args()
2133 walk_db(struct di_devlink_handle *hdp, link_desc_t *linkp) in walk_db() argument
2137 if (linkp->minor_path == NULL) { in walk_db()
2138 return (walk_all_links(hdp, linkp)); in walk_db()
2140 return (walk_matching_links(hdp, linkp)); in walk_db()
[all …]
/titanic_50/usr/src/uts/sun/io/ttymux/
H A Dttymux.c804 struct linkblk *linkp; in sm_link_req() local
818 linkp = (struct linkblk *)mp->b_cont->b_rptr; in sm_link_req()
828 if ((linkp == NULL) || (MBLKL(mp) < sizeof (*linkp)) || in sm_link_req()
829 linkp->l_qbot == NULL) { in sm_link_req()
832 } else if ((plqi = get_lqi_byq(linkp->l_qbot)) == 0) { in sm_link_req()
840 SM_WQ(plqi) = linkp->l_qbot; in sm_link_req()
841 SM_RQ(plqi) = OTHERQ(linkp->l_qbot); in sm_link_req()
843 linkp->l_qbot->q_ptr = in sm_link_req()
844 OTHERQ(linkp->l_qbot)->q_ptr = plqi; in sm_link_req()
845 plqi->sm_linkid = linkp->l_index; in sm_link_req()
[all …]
/titanic_50/usr/src/uts/common/os/
H A Dstrsubr.c1517 linkinfo_t *linkp; in alloclink() local
1519 linkp = kmem_cache_alloc(linkinfo_cache, KM_SLEEP); in alloclink()
1521 linkp->li_lblk.l_qtop = qup; in alloclink()
1522 linkp->li_lblk.l_qbot = qdown; in alloclink()
1523 linkp->li_fpdown = fpdown; in alloclink()
1526 linkp->li_next = linkinfo_list; in alloclink()
1527 linkp->li_prev = NULL; in alloclink()
1528 if (linkp->li_next) in alloclink()
1529 linkp->li_next->li_prev = linkp; in alloclink()
1530 linkinfo_list = linkp; in alloclink()
[all …]
H A Dstreamio.c3964 linkinfo_t *linkp; in strioctl() local
3983 linkp = findlinks(vp->v_stream, muxid, LINKPERSIST, ss); in strioctl()
3984 if (linkp == NULL) { in strioctl()
3995 fp = linkp->li_fpdown; in strioctl()
4373 struct linkinfo *linkp; in strioctl() local
4400 if (!(linkp = findlinks(stp, (int)arg, type, ss))) { in strioctl()
4407 error = munlink(stp, linkp, type, crp, rvalp, ss); in strioctl()
/titanic_50/usr/src/cmd/tar/
H A Dtar.c2942 char *namep, *dirp, *comp, *linkp; /* for removing absolute paths */ in doxtract() local
3213 linkp = templink; in doxtract()
3214 if (*linkp != NULL) { in doxtract()
3215 if (Aflag && *linkp == '/') in doxtract()
3216 linkp++; in doxtract()
3217 if (link(linkp, namep) < 0) { in doxtract()
3225 linkp); in doxtract()
3254 linkp = templink; in doxtract()
3255 if (*linkp != NULL) { in doxtract()
3256 if (Aflag && *linkp == '/') in doxtract()
[all …]
/titanic_50/usr/src/uts/common/io/
H A Dconsms.c633 struct linkblk *linkp; in consms_punlink() local
639 linkp = (struct linkblk *)mp->b_cont->b_rptr; in consms_punlink()
643 if (lq->lq_queue == linkp->l_qbot) { in consms_punlink()
671 struct linkblk *linkp; in consms_plink() local
677 linkp = (struct linkblk *)mp->b_cont->b_rptr; in consms_plink()
678 lowq = linkp->l_qbot; in consms_plink()
H A Dwscons.c532 struct linkblk *linkp; in wcuwput() local
544 linkp = (struct linkblk *)(void *)mp->b_cont->b_rptr; in wcuwput()
545 wscons.wc_kbdqueue = WR(linkp->l_qbot); in wcuwput()
553 linkp = (struct linkblk *)(void *)mp->b_cont->b_rptr; in wcuwput()
554 if (wscons.wc_kbdqueue != WR(linkp->l_qbot)) { in wcuwput()
H A Dconskbd.c1404 struct linkblk *linkp; in conskbd_ioc_plink() local
1410 linkp = (struct linkblk *)mp->b_cont->b_rptr; in conskbd_ioc_plink()
1411 lowque = linkp->l_qbot; in conskbd_ioc_plink()
1455 struct linkblk *linkp; in conskbd_ioc_punlink() local
1459 linkp = (struct linkblk *)mp->b_cont->b_rptr; in conskbd_ioc_punlink()
1462 if (lqs->lqs_queue == linkp->l_qbot) { in conskbd_ioc_punlink()
/titanic_50/usr/src/cmd/fs.d/autofs/
H A Dautod_lookup.c51 struct linka *linkp) in do_lookup1() argument
/titanic_50/usr/src/uts/common/io/ib/mgt/ibcm/
H A Dibcm_impl.c1424 ibcm_state_data_t **linkp, *tmp; in ibcm_open_done() local
1435 linkp = &ibcm_open.head.open_link; in ibcm_open_done()
1436 while (*linkp != statep) in ibcm_open_done()
1437 linkp = &((*linkp)->open_link); in ibcm_open_done()
1438 *linkp = statep->open_link; in ibcm_open_done()
H A Dibcm_ti.c3193 ibcm_ar_t **linkp; in ibt_register_ar() local
3328 linkp = &ibcm_ar_list; in ibt_register_ar()
3329 tmp = *linkp; in ibt_register_ar()
3332 *linkp = new->ar_link; in ibt_register_ar()
3335 linkp = &tmp->ar_link; in ibt_register_ar()
3336 tmp = *linkp; in ibt_register_ar()
3382 ibcm_ar_t **linkp; in ibt_deregister_ar() local
3452 linkp = &ibcm_ar_list; in ibt_deregister_ar()
3453 tmp = *linkp; in ibt_deregister_ar()
3455 linkp = &tmp->ar_link; in ibt_deregister_ar()
[all …]
/titanic_50/usr/src/uts/common/fs/autofs/
H A Dauto_subr.c828 auto_perform_link(fnnode_t *fnp, struct linka *linkp, cred_t *cred) in auto_perform_link() argument
835 (void *)fnp, linkp->dir, linkp->link)); in auto_perform_link()
837 len = strlen(linkp->link) + 1; /* include '\0' */ in auto_perform_link()
839 (void) kcopy(linkp->link, tmp, len); in auto_perform_link()
/titanic_50/usr/src/lib/efcode/engine/
H A Dfcode.c248 get_name(token_t *linkp) in get_name() argument
251 flag_t *fptr = LINK_TO_FLAGS(linkp); in get_name()
/titanic_50/usr/src/cmd/devfsadm/
H A Ddevfsadm.c3549 link_t **linkp; in rm_link_from_cache() local
3559 for (linkp = &(linkhead->link); *linkp != NULL; ) { in rm_link_from_cache()
3560 if ((strcmp((*linkp)->devlink, devlink) == 0)) { in rm_link_from_cache()
3561 save = *linkp; in rm_link_from_cache()
3562 *linkp = (*linkp)->next; in rm_link_from_cache()
3571 linkhead->nextlink = *linkp; in rm_link_from_cache()
3578 linkp = &((*linkp)->next); in rm_link_from_cache()
/titanic_50/usr/src/uts/sun4u/starcat/io/
H A Ddman.c2045 struct linkblk *linkp; in man_plink() local
2049 linkp = (struct linkblk *)mp->b_cont->b_rptr; in man_plink()
2061 lrp->l_muxid = linkp->l_index; in man_plink()
2062 lrp->l_wq = linkp->l_qbot; in man_plink()
2063 lrp->l_rq = RD(linkp->l_qbot); in man_plink()
2081 struct linkblk *linkp; in man_unplink() local
2083 linkp = (struct linkblk *)mp->b_cont->b_rptr; in man_unplink()
2084 RD(linkp->l_qbot)->q_ptr = NULL; in man_unplink()
2085 WR(linkp->l_qbot)->q_ptr = NULL; in man_unplink()
/titanic_50/usr/src/lib/libcfgadm/common/
H A Dconfig_admin.c1078 char *linkp = (char *)arg; in get_link() local
1080 (void) snprintf(linkp, CFGA_LOG_EXT_LEN, "%s", in get_link()
/titanic_50/usr/src/uts/common/io/scsi/targets/
H A Dst.c10459 struct mterror_entry_stack *linkp; in st_empty_error_stack() local
10469 linkp = un->un_error_entry_stk; in st_empty_error_stack()
10473 if (linkp->mtees_entry.mtee_cdb_buf != NULL) in st_empty_error_stack()
10474 kmem_free(linkp->mtees_entry.mtee_cdb_buf, in st_empty_error_stack()
10475 linkp->mtees_entry.mtee_cdb_len); in st_empty_error_stack()
10477 if (linkp->mtees_entry.mtee_arq_status != NULL) in st_empty_error_stack()
10478 kmem_free(linkp->mtees_entry.mtee_arq_status, in st_empty_error_stack()
10479 linkp->mtees_entry.mtee_arq_status_len); in st_empty_error_stack()
10481 kmem_free(linkp, MTERROR_LINK_ENTRY_SIZE); in st_empty_error_stack()
10482 linkp = NULL; in st_empty_error_stack()