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

/illumos-gate/usr/src/cmd/dlmgmtd/
H A Ddlmgmt_util.c315 linkattr_destroy(dlmgmt_link_t *linkp) argument
319 for (attrp = linkp->ll_head; attrp != NULL; attrp = next) {
355 link_destroy(dlmgmt_link_t *linkp) argument
357 linkattr_destroy(linkp);
358 free(linkp);
367 link_activate(dlmgmt_link_t *linkp) argument
372 if (zone_check_datalink(&zoneid, linkp->ll_linkid) == 0) {
377 if (zoneid != linkp->ll_zoneid) {
378 if (link_by_name(linkp->ll_link, zoneid) != NULL) {
383 if (avl_find(&dlmgmt_name_avl, linkp, NUL
406 link_is_visible(dlmgmt_link_t *linkp, zoneid_t zoneid) argument
415 dlmgmt_link_t link, *linkp; local
428 dlmgmt_link_t link, *linkp; local
444 dlmgmt_link_t *linkp = NULL; local
491 dlmgmt_destroy_common(dlmgmt_link_t *linkp, uint32_t flags) argument
612 dlmgmt_link_t link, *linkp; local
664 dlmgmt_advance_ppa(dlmgmt_link_t *linkp) argument
721 dlmgmt_advance_linkid(dlmgmt_link_t *linkp) argument
758 dlmgmt_advance(dlmgmt_link_t *linkp) argument
[all...]
H A Ddlmgmt_door.c94 dlmgmt_link_t *linkp = avl_first(&dlmgmt_id_avl); local
96 for (; linkp != NULL; linkp = AVL_NEXT(&dlmgmt_id_avl, linkp)) {
97 if (link_is_visible(linkp, zoneid) &&
98 (linkp->ll_class == DATALINK_CLASS_PHYS) &&
99 linkattr_equal(&(linkp->ll_head), FDEVNAME, devname,
101 return (linkp);
148 dlmgmt_link_t *linkp; local
176 if ((class == DATALINK_CLASS_PHYS) && (linkp
287 dlmgmt_link_t *linkp; local
363 dlmgmt_link_t *linkp = NULL; local
410 dlmgmt_link_t *linkp; local
439 dlmgmt_link_t *linkp; local
472 dlmgmt_link_t link, *linkp; local
515 dlmgmt_link_t *linkp; local
537 dlmgmt_link_t *linkp; local
590 dlmgmt_link_t *linkp = NULL; local
629 dlmgmt_link_t *linkp; local
697 dlmgmt_link_t *linkp; local
841 dlmgmt_link_t *linkp; local
921 dlmgmt_link_t *linkp; local
996 dlmgmt_link_t *linkp; local
1065 dlmgmt_link_t *linkp; local
1166 dlmgmt_link_t *linkp; local
1198 dlmgmt_link_t *linkp; local
[all...]
H A Ddlmgmt_db.c539 * Update the db entry with name "entryname" using information from "linkp".
542 dlmgmt_db_update(dlmgmt_db_op_t op, const char *entryname, dlmgmt_link_t *linkp, argument
551 if ((req = dlmgmt_db_req_alloc(op, entryname, linkp->ll_linkid,
552 linkp->ll_zoneid, flags, &err)) == NULL)
708 parse_linkprops(char *buf, dlmgmt_link_t *linkp) argument
754 linkp->ll_linkid =
759 (void) snprintf(linkp->ll_link,
764 linkp->ll_class =
769 linkp->ll_media =
777 if (linkattr_set(&(linkp
834 process_link_line(char *buf, dlmgmt_link_t *linkp) argument
912 dlmgmt_attr_rename(dlmgmt_link_t *linkp, const char *old, const char *new, boolean_t *renamed) argument
971 dlmgmt_link_t link_in_file, *linkp = NULL, *dblinkp; local
1215 generate_link_line(dlmgmt_link_t *linkp, boolean_t persist, char *buf) argument
1254 dlmgmt_delete_db_entry(dlmgmt_link_t *linkp, uint32_t flags) argument
1261 dlmgmt_write_db_entry(const char *entryname, dlmgmt_link_t *linkp, uint32_t flags) argument
1296 dlmgmt_link_t *linkp; local
1357 dlmgmt_db_upgrade(dlmgmt_link_t *linkp) argument
1366 dlmgmt_db_phys_activate(dlmgmt_link_t *linkp) argument
1375 dlmgmt_link_t *linkp; local
1449 dlmgmt_link_t *linkp = avl_first(&dlmgmt_name_avl), *next_linkp; local
[all...]
/illumos-gate/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) argument
406 if (linkp == NULL)
409 debug_opaque_print(fp, (void *)&linkp->dfh, sizeof (linkp->dfh));
410 (void) fprintf(fp, "\nname: '%s'", LN_NAME(linkp));
412 linkp->mtime, linkp
635 db_update_linkinfo(struct db_list *dbp, void *keyaddr, int keysize, linkinfo_ent *linkp, char *str) argument
758 get_next_link(struct db_list *dbp, char *linkkey, int *linksizep, linkinfo_ent *linkp, void **cookiep, int *errorp, char *msg) argument
842 add_mc_path(struct db_list *dbp, fhandle_t *dfh, char *name, fhlist_ent *fhrecp, linkinfo_ent *linkp, int *errorp) argument
910 linkinfo_ent *linkp; local
1405 linkinfo_ent *linkp; local
1751 linkinfo_ent *linkp, link_st; local
[all...]
/illumos-gate/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) argument
2107 if (linkp->fcn == NULL)
2110 if (!link_flag(linkp->flags)) {
2118 if (linkp->minor_path) {
2119 if (linkp->minor_path[0] != '/' ||
2120 minor_colon(linkp->minor_path) == NULL) {
2133 walk_db(struct di_devlink_handle *hdp, link_desc_t *linkp) argument
2137 if (linkp->minor_path == NULL) {
2138 return (walk_all_links(hdp, linkp));
2140 return (walk_matching_links(hdp, linkp));
2173 walk_dev(struct di_devlink_handle *hdp, link_desc_t *linkp) argument
2233 walk_all_links(struct di_devlink_handle *hdp, link_desc_t *linkp) argument
2267 walk_matching_links(struct di_devlink_handle *hdp, link_desc_t *linkp) argument
2306 visit_link( struct di_devlink_handle *hdp, link_desc_t *linkp, struct di_devlink *vlp) argument
3616 walk_cache_links(di_devlink_handle_t hdp, cache_link_t *clp, link_desc_t *linkp) argument
3659 walk_all_cache(di_devlink_handle_t hdp, link_desc_t *linkp) argument
3687 walk_cache_minor(di_devlink_handle_t hdp, const char *mpath, link_desc_t *linkp) argument
3701 walk_cache_node(di_devlink_handle_t hdp, const char *path, link_desc_t *linkp) argument
[all...]
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dautod_lookup.c51 struct linka *linkp)
42 do_lookup1( char *mapname, char *key, char *subdir, char *mapopts, char *path, uint_t isdirect, uid_t uid, autofs_action_t *action, struct linka *linkp) argument
/illumos-gate/usr/src/uts/sun/io/ttymux/
H A Dttymux.c804 struct linkblk *linkp; local
818 linkp = (struct linkblk *)mp->b_cont->b_rptr;
828 if ((linkp == NULL) || (MBLKL(mp) < sizeof (*linkp)) ||
829 linkp->l_qbot == NULL) {
832 } else if ((plqi = get_lqi_byq(linkp->l_qbot)) == 0) {
840 SM_WQ(plqi) = linkp->l_qbot;
841 SM_RQ(plqi) = OTHERQ(linkp->l_qbot);
843 linkp->l_qbot->q_ptr =
844 OTHERQ(linkp
[all...]
/illumos-gate/usr/src/uts/common/os/
H A Dstrsubr.c1517 linkinfo_t *linkp; local
1519 linkp = kmem_cache_alloc(linkinfo_cache, KM_SLEEP);
1521 linkp->li_lblk.l_qtop = qup;
1522 linkp->li_lblk.l_qbot = qdown;
1523 linkp->li_fpdown = fpdown;
1526 linkp->li_next = linkinfo_list;
1527 linkp->li_prev = NULL;
1528 if (linkp->li_next)
1529 linkp->li_next->li_prev = linkp;
1542 lbfree(linkinfo_t *linkp) argument
1627 linkinfo_t *linkp; local
1731 struct linkinfo *linkp; local
2009 munlink(stdata_t *stp, linkinfo_t *linkp, int flag, cred_t *crp, int *rvalp, str_stack_t *ss) argument
2258 linkinfo_t *linkp; local
[all...]
H A Dstreamio.c3964 linkinfo_t *linkp; local
3983 linkp = findlinks(vp->v_stream, muxid, LINKPERSIST, ss);
3984 if (linkp == NULL) {
3995 fp = linkp->li_fpdown;
4373 struct linkinfo *linkp; local
4400 if (!(linkp = findlinks(stp, (int)arg, type, ss))) {
4407 error = munlink(stp, linkp, type, crp, rvalp, ss);
/illumos-gate/usr/src/uts/common/io/
H A Dconsms.c633 struct linkblk *linkp; local
639 linkp = (struct linkblk *)mp->b_cont->b_rptr;
643 if (lq->lq_queue == linkp->l_qbot) {
671 struct linkblk *linkp; local
677 linkp = (struct linkblk *)mp->b_cont->b_rptr;
678 lowq = linkp->l_qbot;
H A Dwscons.c532 struct linkblk *linkp; local
544 linkp = (struct linkblk *)(void *)mp->b_cont->b_rptr;
545 wscons.wc_kbdqueue = WR(linkp->l_qbot);
553 linkp = (struct linkblk *)(void *)mp->b_cont->b_rptr;
554 if (wscons.wc_kbdqueue != WR(linkp->l_qbot)) {
H A Dconskbd.c1404 struct linkblk *linkp; local
1410 linkp = (struct linkblk *)mp->b_cont->b_rptr;
1411 lowque = linkp->l_qbot;
1455 struct linkblk *linkp; local
1459 linkp = (struct linkblk *)mp->b_cont->b_rptr;
1462 if (lqs->lqs_queue == linkp->l_qbot) {
/illumos-gate/usr/src/cmd/tar/
H A Dtar.c2943 char *namep, *dirp, *comp, *linkp; /* for removing absolute paths */ local
3214 linkp = templink;
3215 if (*linkp != NULL) {
3216 if (Aflag && *linkp == '/')
3217 linkp++;
3218 if (link(linkp, namep) < 0) {
3226 linkp);
3255 linkp = templink;
3256 if (*linkp != NULL) {
3257 if (Aflag && *linkp
[all...]
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibcm/
H A Dibcm_impl.c1424 ibcm_state_data_t **linkp, *tmp; local
1435 linkp = &ibcm_open.head.open_link;
1436 while (*linkp != statep)
1437 linkp = &((*linkp)->open_link);
1438 *linkp = statep->open_link;
H A Dibcm_ti.c3193 ibcm_ar_t **linkp; local
3328 linkp = &ibcm_ar_list;
3329 tmp = *linkp;
3332 *linkp = new->ar_link;
3335 linkp = &tmp->ar_link;
3336 tmp = *linkp;
3382 ibcm_ar_t **linkp; local
3452 linkp = &ibcm_ar_list;
3453 tmp = *linkp;
3455 linkp
[all...]
/illumos-gate/usr/src/uts/common/fs/autofs/
H A Dauto_subr.c828 auto_perform_link(fnnode_t *fnp, struct linka *linkp, cred_t *cred) argument
835 (void *)fnp, linkp->dir, linkp->link));
837 len = strlen(linkp->link) + 1; /* include '\0' */
839 (void) kcopy(linkp->link, tmp, len);
/illumos-gate/usr/src/lib/efcode/engine/
H A Dfcode.c248 get_name(token_t *linkp) argument
251 flag_t *fptr = LINK_TO_FLAGS(linkp);
/illumos-gate/usr/src/cmd/devfsadm/
H A Ddevfsadm.c3550 link_t **linkp; local
3560 for (linkp = &(linkhead->link); *linkp != NULL; ) {
3561 if ((strcmp((*linkp)->devlink, devlink) == 0)) {
3562 save = *linkp;
3563 *linkp = (*linkp)->next;
3572 linkhead->nextlink = *linkp;
3579 linkp = &((*linkp)
[all...]
/illumos-gate/usr/src/uts/sun4u/starcat/io/
H A Ddman.c2045 struct linkblk *linkp; local
2049 linkp = (struct linkblk *)mp->b_cont->b_rptr;
2061 lrp->l_muxid = linkp->l_index;
2062 lrp->l_wq = linkp->l_qbot;
2063 lrp->l_rq = RD(linkp->l_qbot);
2081 struct linkblk *linkp; local
2083 linkp = (struct linkblk *)mp->b_cont->b_rptr;
2084 RD(linkp->l_qbot)->q_ptr = NULL;
2085 WR(linkp->l_qbot)->q_ptr = NULL;
/illumos-gate/usr/src/lib/libcfgadm/common/
H A Dconfig_admin.c1078 char *linkp = (char *)arg; local
1080 (void) snprintf(linkp, CFGA_LOG_EXT_LEN, "%s",
/illumos-gate/usr/src/uts/common/io/scsi/targets/
H A Dst.c10459 struct mterror_entry_stack *linkp; local
10469 linkp = un->un_error_entry_stk;
10473 if (linkp->mtees_entry.mtee_cdb_buf != NULL)
10474 kmem_free(linkp->mtees_entry.mtee_cdb_buf,
10475 linkp->mtees_entry.mtee_cdb_len);
10477 if (linkp->mtees_entry.mtee_arq_status != NULL)
10478 kmem_free(linkp->mtees_entry.mtee_arq_status,
10479 linkp->mtees_entry.mtee_arq_status_len);
10481 kmem_free(linkp, MTERROR_LINK_ENTRY_SIZE);
10482 linkp
[all...]

Completed in 166 milliseconds