/illumos-gate/usr/src/cmd/dlmgmtd/ |
H A D | dlmgmt_door.c | 98 for (; linkp != NULL; linkp = AVL_NEXT(&dlmgmt_id_avl, linkp)) { in dlmgmt_getlink_by_dev() 103 return (linkp); in dlmgmt_getlink_by_dev() 210 linkp->ll_gen++; in dlmgmt_upcall_create() 234 &linkp); in dlmgmt_upcall_create() 312 if (linkp->ll_media != media && linkp->ll_media != DL_OTHER) { in dlmgmt_upcall_update() 348 (void) dlmgmt_write_db_entry(linkp->ll_link, linkp, in dlmgmt_upcall_update() 399 (void) dlmgmt_write_db_entry(linkp->ll_link, linkp, dflags); in dlmgmt_upcall_destroy() 489 for (; linkp != NULL; linkp = AVL_NEXT(&dlmgmt_id_avl, linkp)) { in dlmgmt_getnext() 575 (void) dlmgmt_write_db_entry(linkp->ll_link, linkp, in dlmgmt_createid() 723 (void) dlmgmt_write_db_entry(linkp->ll_link, linkp, in dlmgmt_upid() [all …]
|
H A D | dlmgmt_util.c | 359 free(linkp); in link_destroy() 438 err = zone_add_datalink(linkp->ll_zoneid, linkp->ll_linkid); in link_activate() 469 return (linkp); in link_by_id() 484 return (linkp); in link_by_name() 543 *linkpp = linkp; in dlmgmt_create_common() 547 free(linkp); in dlmgmt_create_common() 580 (void) zone_remove_datalink(linkp->ll_zoneid, linkp->ll_linkid); in dlmgmt_destroy_common() 757 linkp = AVL_NEXT(&dlmgmt_name_avl, linkp); in dlmgmt_advance_ppa() 778 linkp = AVL_NEXT(&dlmgmt_name_avl, linkp); in dlmgmt_advance_ppa() 796 linkp = AVL_NEXT(&dlmgmt_id_avl, linkp); in dlmgmt_advance_linkid() [all …]
|
H A D | dlmgmt_db.c | 778 linkp->ll_class = in parse_linkprops() 783 linkp->ll_media = in parse_linkprops() 884 bzero(linkp, sizeof (*linkp)); in process_link_line() 924 if (strlcpy(linkp->ll_link, str, sizeof (linkp->ll_link)) >= in process_link_line() 1028 if (linkp == NULL || (linkp->ll_flags & req->ls_flags) == 0) { in process_db_write() 1324 return (dlmgmt_db_update(DLMGMT_DB_OP_DELETE, linkp->ll_link, linkp, in dlmgmt_delete_db_entry() 1437 (void) dlmgmt_write_db_entry(linkp->ll_link, linkp, DLMGMT_ACTIVE); in dlmgmt_db_phys_activate() 1445 for (linkp = avl_first(&dlmgmt_id_avl); linkp != NULL; in dlmgmt_db_walk() 1446 linkp = AVL_NEXT(&dlmgmt_id_avl, linkp)) { in dlmgmt_db_walk() 1447 if (linkp->ll_zoneid == zoneid && (linkp->ll_class & class)) in dlmgmt_db_walk() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/ |
H A D | dbtab.c | 410 linkp->mtime, linkp->atime, linkp->flags, linkp->reclen); in debug_print_linkinfo() 412 linkp->fhkey_offset, linkp->name_offset, linkp->next_offset, in debug_print_linkinfo() 641 linkp, linkp->reclen, str)); in db_update_linkinfo() 868 linkp->prev_offset = linkp->next_offset; /* aligned */ in add_mc_path() 871 linkp->reclen = linkp->prev_offset + linksize; /* aligned */ in add_mc_path() 876 linkp, linkp->reclen, "add_mc_path"); in add_mc_path() 923 linkp->atime = linkp->mtime; in create_link_struct() 964 linkp->prev_offset = linkp->next_offset + len; /* aligned */ in create_link_struct() 965 linkp->reclen = linkp->prev_offset; in create_link_struct() 972 free(linkp); in create_link_struct() [all …]
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_devlink.h | 368 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 D | devinfo_devlink.c | 2108 if (linkp->fcn == NULL) in check_args() 2176 assert(hdp && linkp); in walk_dev() 2190 if (linkp->minor_path) in walk_dev() 2191 walk_cache_minor(hdp, linkp->minor_path, linkp); in walk_dev() 2195 return (linkp->retval); in walk_dev() 2264 return (linkp->retval); in walk_all_links() 2303 return (linkp->retval); in walk_matching_links() 2309 link_desc_t *linkp, in visit_link() argument 2331 if (linkp->regp) { in visit_link() 2394 if (!TYPE_NONE(linkp->flags) && LINK_TYPE(linkp->flags) != vlp->type) { in visit_link() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | strsubr.c | 1521 linkinfo_t *linkp; in alloclink() local 1533 linkp->li_next->li_prev = linkp; in alloclink() 1539 return (linkp); in alloclink() 1550 linkp->li_next->li_prev = linkp->li_prev; in lbfree() 1552 linkp->li_prev->li_next = linkp->li_next; in lbfree() 1631 linkinfo_t *linkp; in findlinks() local 1639 for (linkp = linkinfo_list; linkp; linkp = linkp->li_next) { in findlinks() 1643 return (linkp); in findlinks() 1659 for (linkp = linkinfo_list; linkp; linkp = linkp->li_next) { in findlinks() 1961 lbfree(linkp); in mlink_file() [all …]
|
H A D | streamio.c | 4089 linkinfo_t *linkp; in strioctl() local 4108 linkp = findlinks(vp->v_stream, muxid, LINKPERSIST, ss); in strioctl() 4109 if (linkp == NULL) { in strioctl() 4120 fp = linkp->li_fpdown; in strioctl() 4498 struct linkinfo *linkp; in strioctl() local 4525 if (!(linkp = findlinks(stp, (int)arg, type, ss))) { in strioctl() 4532 error = munlink(stp, linkp, type, crp, rvalp, ss); in strioctl()
|
/illumos-gate/usr/src/cmd/tar/ |
H A D | tar.c | 3218 linkp++; in doxtract() 3227 linkp); in doxtract() 3259 linkp++; in doxtract() 3268 linkp); in doxtract() 3308 linkp++; in doxtract() 3317 linkp); in doxtract() 3351 linkp++; in doxtract() 3372 linkp++; in doxtract() 3412 linkp, in doxtract() 3451 linkp++; in doxtract() [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | consms.c | 622 struct linkblk *linkp; in consms_punlink() local 628 linkp = (struct linkblk *)mp->b_cont->b_rptr; in consms_punlink() 632 if (lq->lq_queue == linkp->l_qbot) { in consms_punlink() 660 struct linkblk *linkp; in consms_plink() local 666 linkp = (struct linkblk *)mp->b_cont->b_rptr; in consms_plink() 667 lowq = linkp->l_qbot; in consms_plink()
|
H A D | wscons.c | 681 struct linkblk *linkp; in wcuwput() local 693 linkp = (struct linkblk *)(void *)mp->b_cont->b_rptr; in wcuwput() 694 wscons.wc_kbdqueue = WR(linkp->l_qbot); in wcuwput() 702 linkp = (struct linkblk *)(void *)mp->b_cont->b_rptr; in wcuwput() 703 if (wscons.wc_kbdqueue != WR(linkp->l_qbot)) { in wcuwput()
|
H A D | conskbd.c | 1416 struct linkblk *linkp; in conskbd_ioc_plink() local 1422 linkp = (struct linkblk *)mp->b_cont->b_rptr; in conskbd_ioc_plink() 1423 lowque = linkp->l_qbot; in conskbd_ioc_plink() 1467 struct linkblk *linkp; in conskbd_ioc_punlink() local 1471 linkp = (struct linkblk *)mp->b_cont->b_rptr; in conskbd_ioc_punlink() 1474 if (lqs->lqs_queue == linkp->l_qbot) { in conskbd_ioc_punlink()
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | autod_lookup.c | 49 struct linka *linkp) in do_lookup1() argument
|
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibcm/ |
H A D | ibcm_impl.c | 1424 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 D | ibcm_ti.c | 3193 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() 3456 tmp = *linkp; in ibt_deregister_ar() [all …]
|
/illumos-gate/usr/src/uts/common/fs/autofs/ |
H A D | auto_subr.c | 830 auto_perform_link(fnnode_t *fnp, struct linka *linkp, cred_t *cred) in auto_perform_link() argument 837 (void *)fnp, linkp->dir, linkp->link)); in auto_perform_link() 839 len = strlen(linkp->link) + 1; /* include '\0' */ in auto_perform_link() 841 (void) kcopy(linkp->link, tmp, len); in auto_perform_link()
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | devfsadm.c | 3562 link_t **linkp; in rm_link_from_cache() local 3572 for (linkp = &(linkhead->link); *linkp != NULL; ) { in rm_link_from_cache() 3573 if ((strcmp((*linkp)->devlink, devlink) == 0)) { in rm_link_from_cache() 3574 save = *linkp; in rm_link_from_cache() 3575 *linkp = (*linkp)->next; in rm_link_from_cache() 3584 linkhead->nextlink = *linkp; in rm_link_from_cache() 3591 linkp = &((*linkp)->next); in rm_link_from_cache()
|
/illumos-gate/usr/src/lib/libcfgadm/common/ |
H A D | config_admin.c | 1084 char *linkp = (char *)arg; in get_link() local 1086 (void) snprintf(linkp, CFGA_LOG_EXT_LEN, "%s", in get_link()
|
/illumos-gate/usr/src/uts/common/io/scsi/targets/ |
H A D | st.c | 10459 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()
|