/illumos-gate/usr/src/cmd/dlmgmtd/ |
H A D | dlmgmt_door.c | 96 dlmgmt_link_t *linkp = avl_first(&dlmgmt_id_avl); in dlmgmt_getlink_by_dev() local 98 for (; linkp != NULL; linkp = AVL_NEXT(&dlmgmt_id_avl, linkp)) { in dlmgmt_getlink_by_dev() 99 if (link_is_visible(linkp, zoneid) && in dlmgmt_getlink_by_dev() 100 (linkp->ll_class == DATALINK_CLASS_PHYS) && in dlmgmt_getlink_by_dev() 101 linkattr_equal(&(linkp->ll_head), FDEVNAME, devname, in dlmgmt_getlink_by_dev() 103 return (linkp); in dlmgmt_getlink_by_dev() 150 dlmgmt_link_t *linkp; in dlmgmt_upcall_create() local 178 if ((class == DATALINK_CLASS_PHYS) && (linkp = in dlmgmt_upcall_create() 180 if (linkattr_equal(&(linkp->ll_head), FPHYMAJ, in dlmgmt_upcall_create() 182 linkattr_equal(&(linkp->ll_head), FPHYINST, in dlmgmt_upcall_create() [all …]
|
H A D | dlmgmt_util.c | 316 linkattr_destroy(dlmgmt_link_t *linkp) in linkattr_destroy() argument 320 for (attrp = linkp->ll_head; attrp != NULL; attrp = next) { in linkattr_destroy() 356 link_destroy(dlmgmt_link_t *linkp) in link_destroy() argument 358 linkattr_destroy(linkp); in link_destroy() 359 free(linkp); in link_destroy() 368 link_activate(dlmgmt_link_t *linkp) in link_activate() argument 378 if (zone_check_datalink(&zoneid, linkp->ll_linkid) == 0) { in link_activate() 390 if (zoneid != linkp->ll_zoneid) { in link_activate() 391 assert(linkp->ll_zoneid == 0); in link_activate() 392 assert(linkp->ll_onloan == B_FALSE); in link_activate() [all …]
|
H A D | dlmgmt_db.c | 543 dlmgmt_db_update(dlmgmt_db_op_t op, const char *entryname, dlmgmt_link_t *linkp, in dlmgmt_db_update() argument 552 if ((req = dlmgmt_db_req_alloc(op, entryname, linkp->ll_linkid, in dlmgmt_db_update() 553 linkp->ll_zoneid, flags, &err)) == NULL) { in dlmgmt_db_update() 565 if (flags == DLMGMT_ACTIVE && linkp->ll_transient) in dlmgmt_db_update() 721 parse_linkprops(char *buf, dlmgmt_link_t *linkp) in parse_linkprops() argument 768 linkp->ll_linkid = in parse_linkprops() 773 (void) snprintf(linkp->ll_link, in parse_linkprops() 778 linkp->ll_class = in parse_linkprops() 783 linkp->ll_media = in parse_linkprops() 788 linkp->ll_zoneid = getzoneidbyname(attr_buf); in parse_linkprops() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/ |
H A D | dbtab.c | 102 linkinfo_ent *linkp, char *str); 110 int *linksizep, linkinfo_ent *linkp, void **cookiep, 114 fhlist_ent *fhrecp, linkinfo_ent *linkp, int *errorp); 402 debug_print_linkinfo(FILE *fp, linkinfo_ent *linkp) in debug_print_linkinfo() argument 404 if (linkp == NULL) in debug_print_linkinfo() 407 debug_opaque_print(fp, (void *)&linkp->dfh, sizeof (linkp->dfh)); in debug_print_linkinfo() 408 (void) fprintf(fp, "\nname: '%s'", LN_NAME(linkp)); in debug_print_linkinfo() 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() 413 linkp->prev_offset); in debug_print_linkinfo() [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 | 2106 check_args(link_desc_t *linkp) in check_args() argument 2108 if (linkp->fcn == NULL) in check_args() 2111 if (!link_flag(linkp->flags)) { in check_args() 2119 if (linkp->minor_path) { in check_args() 2120 if (linkp->minor_path[0] != '/' || in check_args() 2121 minor_colon(linkp->minor_path) == NULL) { in check_args() 2134 walk_db(struct di_devlink_handle *hdp, link_desc_t *linkp) in walk_db() argument 2138 if (linkp->minor_path == NULL) { in walk_db() 2139 return (walk_all_links(hdp, linkp)); in walk_db() 2141 return (walk_matching_links(hdp, linkp)); in walk_db() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | strsubr.c | 1520 linkinfo_t *linkp; in alloclink() local 1522 linkp = kmem_cache_alloc(linkinfo_cache, KM_SLEEP); in alloclink() 1524 linkp->li_lblk.l_qtop = qup; in alloclink() 1525 linkp->li_lblk.l_qbot = qdown; in alloclink() 1526 linkp->li_fpdown = fpdown; in alloclink() 1529 linkp->li_next = linkinfo_list; in alloclink() 1530 linkp->li_prev = NULL; in alloclink() 1531 if (linkp->li_next) in alloclink() 1532 linkp->li_next->li_prev = linkp; in alloclink() 1533 linkinfo_list = linkp; in alloclink() [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 | 2945 char *namep, *dirp, *comp, *linkp; /* for removing absolute paths */ in doxtract() local 3216 linkp = templink; in doxtract() 3217 if (*linkp != '\0') { in doxtract() 3218 if (Aflag && *linkp == '/') in doxtract() 3219 linkp++; in doxtract() 3220 if (link(linkp, namep) < 0) { in doxtract() 3228 linkp); in doxtract() 3257 linkp = templink; in doxtract() 3258 if (*linkp != '\0') { in doxtract() 3259 if (Aflag && *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() 3455 linkp = &tmp->ar_link; 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()
|