/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_changelist.c | 96 changelist_prefix(prop_changelist_t *clp) argument 101 if (clp->cl_prop != ZFS_PROP_MOUNTPOINT && 102 clp->cl_prop != ZFS_PROP_SHARESMB) 105 for (cn = uu_list_first(clp->cl_list); cn != NULL; 106 cn = uu_list_next(clp->cl_list, cn)) { 125 switch (clp->cl_prop) { 128 clp->cl_mflags) != 0) { 144 (void) changelist_postfix(clp); 159 changelist_postfix(prop_changelist_t *clp) argument 173 if ((cn = uu_list_last(clp 290 changelist_rename(prop_changelist_t *clp, const char *src, const char *dst) argument 321 changelist_unshare(prop_changelist_t *clp, zfs_share_proto_t *proto) argument 345 changelist_haszonedchild(prop_changelist_t *clp) argument 354 changelist_remove(prop_changelist_t *clp, const char *name) argument 374 changelist_free(prop_changelist_t *clp) argument 397 prop_changelist_t *clp = data; local 536 prop_changelist_t *clp; local [all...] |
H A D | libzfs_mount.c | 481 prop_changelist_t *clp; local 484 clp = changelist_gather(zhp, ZFS_PROP_MOUNTPOINT, 0, flags); 485 if (clp == NULL) 488 ret = changelist_prefix(clp); 489 changelist_free(clp); 977 prop_changelist_t *clp; local 980 clp = changelist_gather(zhp, ZFS_PROP_SHARENFS, 0, 0); 981 if (clp == NULL) 984 ret = changelist_unshare(clp, proto); 985 changelist_free(clp); [all...] |
H A D | libzfs_sendrecv.c | 2128 prop_changelist_t *clp; local 2134 clp = changelist_gather(zhp, ZFS_PROP_NAME, 0, 2137 if (clp == NULL) 2139 err = changelist_prefix(clp); 2157 changelist_rename(clp, name, tryname); 2175 changelist_rename(clp, name, newname); 2188 (void) changelist_postfix(clp); 2189 changelist_free(clp); 2200 prop_changelist_t *clp; local 2208 clp 2803 prop_changelist_t *clp = NULL; local 3036 prop_changelist_t *clp = NULL; local 3739 prop_changelist_t *clp; local [all...] |
/illumos-gate/usr/src/uts/common/disp/ |
H A D | class.c | 52 sclass_t *clp; local 63 for (clp = sclass; clp < &sclass[nclass]; clp++) 64 if (clp->cl_name[0] == '\0' && clp->cl_lock == NULL) 67 if (clp == &sclass[nclass]) { 70 *cidp = clp - &sclass[0]; 71 clp->cl_lock = kmem_alloc(sizeof (krwlock_t), KM_SLEEP); 72 clp 85 scheduler_load(char *clname, sclass_t *clp) argument 117 sclass_t *clp; local 153 sclass_t *clp; local [all...] |
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | clnt_raw.c | 80 struct clnt_raw_private *clp; local 85 /* VARIABLES PROTECTED BY clntraw_lock: clp */ 88 clp = clnt_raw_private; 89 if (clp == NULL) { 90 clp = calloc(1, sizeof (*clp)); 91 if (clp == NULL) { 100 if (clp) 101 free(clp); 106 clp 147 struct clnt_raw_private *clp; local 230 struct clnt_raw_private *clp; local 276 struct clnt_raw_private *clp; local [all...] |
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_devlink.c | 631 cache_link_t *clp; local 650 clp = link_insert(hdp, pcmp, path, content, dlp->attr); 651 if (clp == NULL) { 657 nidx, clp->path, pcmp == NULL ? "(DANGLING)" : ""); 915 cache_link_t *clp, 925 if (clp != NULL && ((pdmp == NULL) ^ (clp == CACHE(hdp)->dngl))) { 931 for (; clp != NULL; clp = clp 912 write_links( struct di_devlink_handle *hdp, struct db_minor *pdmp, cache_link_t *clp, uint32_t *next) argument 1054 cache_link_t *clp; local 1107 cache_link_t *clp; local 1136 rm_link_from_hash(struct di_devlink_handle *hdp, cache_link_t *clp) argument 1164 cache_link_t **pp, *clp; local 1189 link2minor(struct di_devlink_handle *hdp, cache_link_t *clp) argument 1288 cache_link_t *clp, **pp; local 1347 cache_link_t *clp = *pp; local 1731 cache_link_t *clp; local 1765 link_delete(di_devlink_handle_t hdp, cache_link_t *clp) argument 1829 cache_link_t *clp; local 1881 link_cmp(cache_link_t *clp, const char *content, int type) argument 1913 cache_link_t *clp; local 2202 cache_link_t *clp; local 2758 cache_link_t *clp; local 2796 hash_insert(struct di_devlink_handle *hdp, cache_link_t *clp) argument 2953 cache_link_t *clp; local 3004 cache_link_t *clp; local 3019 count_link(cache_link_t *clp, uint32_t *count) argument 3616 walk_cache_links(di_devlink_handle_t hdp, cache_link_t *clp, link_desc_t *linkp) argument 3662 cache_link_t *clp; local [all...] |
H A D | devinfo_devlink.h | 312 static void link_delete(di_devlink_handle_t hdp, cache_link_t *clp); 319 cache_link_t *clp, uint32_t *next); 320 static void rm_link_from_hash(struct di_devlink_handle *hdp, cache_link_t *clp); 333 static void count_link(cache_link_t *clp, uint32_t *count); 348 static void hash_insert(struct di_devlink_handle *hdp, cache_link_t *clp); 377 static int walk_cache_links(di_devlink_handle_t hdp, cache_link_t *clp, 408 cache_link_t *clp); 409 static int link_cmp(cache_link_t *clp, const char *content, int type);
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | class.h | 147 #define CL_ADMIN(clp, uaddr, reqpcredp) \ 148 (*(clp)->cl_funcs->sclass.cl_admin)(uaddr, reqpcredp) 163 #define CL_GETCLINFO(clp, clinfop) \ 164 (*(clp)->cl_funcs->sclass.cl_getclinfo)((void *)clinfop) 166 #define CL_GETCLPRI(clp, clprip) \ 167 (*(clp)->cl_funcs->sclass.cl_getclpri)(clprip) 172 #define CL_PARMSIN(clp, clparmsp) \ 173 (clp)->cl_funcs->sclass.cl_parmsin((void *)clparmsp) 175 #define CL_PARMSOUT(clp, clparmsp, vaparmsp) \ 176 (clp) [all...] |
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/ |
H A D | cfga_list.c | 62 static void get_hw_info(di_node_t node, cfga_list_data_t *clp, dyncomp_t type); 420 cfga_list_data_t *clp; local 434 clp = &listp->ldata; 449 (void) snprintf(clp->ap_log_id, sizeof (clp->ap_log_id), "%s%s%s", 452 (void) snprintf(clp->ap_phys_id, sizeof (clp->ap_phys_id), "%s%s%s", 458 clp->ap_class[0] = '\0'; 459 clp->ap_r_state = lap->hba_rstate; 461 clp 601 cfga_list_data_t *clp = NULL; local 705 cfga_list_data_t *clp = NULL; local 770 get_hw_info(di_node_t node, cfga_list_data_t *clp, dyncomp_t type) argument [all...] |
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_list.c | 89 static void get_hw_info(di_node_t node, cfga_list_data_t *clp); 1433 cfga_list_data_t *clp = NULL; local 1515 clp = &listp->ldata; 1517 (void) snprintf(clp->ap_log_id, sizeof (clp->ap_log_id), "%s", 1519 (void) snprintf(clp->ap_phys_id, sizeof (clp->ap_phys_id), "%s", 1522 clp->ap_class[0] = '\0'; /* Filled by libcfgadm */ 1523 clp->ap_r_state = lap->xport_rstate; 1524 clp 1574 cfga_list_data_t *clp = NULL; local 2127 cfga_list_data_t *clp; local 2461 cfga_list_data_t *clp = NULL; local 2877 cfga_list_data_t *clp = NULL; local 2978 cfga_list_data_t *clp = NULL; local 3048 cfga_list_data_t *clp = NULL; local 3309 get_hw_info(di_node_t node, cfga_list_data_t *clp) argument [all...] |
/illumos-gate/usr/src/lib/cfgadm_plugins/ib/common/ |
H A D | cfga_ib.c | 1542 * clp - The returned "list" information array 1553 ib_fill_static_apids(char *ap_id, cfga_list_data_t *clp) argument 1576 clp->ap_cond = CFGA_COND_OK; 1577 clp->ap_r_state = CFGA_STAT_CONNECTED; 1578 clp->ap_o_state = CFGA_STAT_CONFIGURED; 1579 clp->ap_class[0] = '\0'; /* Filled by libcfgadm */ 1580 clp->ap_busy = 0; 1581 clp->ap_status_time = (time_t)-1; 1582 (void) snprintf(clp->ap_log_id, sizeof (clp 1654 cfga_list_data_t *clp = NULL; local [all...] |
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/ |
H A D | nfslogd.c | 642 nfsl_config_t *clp; local 646 for (clp = listp; clp != NULL; clp = clp->nc_next) { 652 if (clp->nc_logpath) { 653 if (is_cycle_needed(clp->nc_logpath, &processed_list, 655 if (clp->nc_transcookie != NULL) { 657 &clp->nc_transcookie); 658 assert(clp 900 transactions_timeout(nfsl_config_t *clp) argument 916 close_all_translogs(nfsl_config_t *clp) argument [all...] |
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_connect.c | 72 static void connection_get(struct conn_list *clp, ndmp_door_ctx_t *enc_ctx); 73 static void ndmp_connect_get_conn(struct conn_list *clp, 650 struct conn_list *clp; local 655 LIST_FOREACH(clp, &cl_head, cl_q) { 656 if (clp->cl_conn == connection) { 658 return (clp); 680 struct conn_list *clp; local 687 if ((clp = ndmp_malloc(sizeof (struct conn_list))) == NULL) 690 clp->cl_conn = connection; 691 clp 716 struct conn_list *clp; local 748 struct conn_list *clp; local 768 ndmp_connect_get_conn(struct conn_list *clp, ndmp_door_ctx_t *enc_ctx) argument 1006 connection_get(struct conn_list *clp, ndmp_door_ctx_t *enc_ctx) argument 1078 struct conn_list *clp; local 1110 struct conn_list *clp; local [all...] |
/illumos-gate/usr/src/uts/common/rpc/ |
H A D | rdma_subr.c | 200 struct clist *clp; local 202 clp = kmem_cache_alloc(clist_cache, KM_SLEEP); 204 bzero(clp, sizeof (*clp)); 206 return (clp); 236 clist_add(struct clist **clp, uint32_t xdroff, int len, argument 244 while (*clp != NULL) 245 clp = &((*clp)->c_next); 258 *clp [all...] |
H A D | xdr_rdma.c | 1365 xdrrdma_free_clist(CONN *conn, struct clist *clp) argument 1367 rdma_buf_free(conn, &clp->rb_longbuf); 1368 clist_free(clp); 1506 struct clist *clp; local 1573 clp = xdrp->xp_rcl_xdr; 1574 while (clp->c_next != NULL) 1575 clp = clp->c_next; 1576 clp->c_next = rclp;
|
/illumos-gate/usr/src/cmd/mdb/common/modules/ipp/ |
H A D | ipp.c | 283 cfglock_t *clp; local 288 clp = mdb_alloc(sizeof (cfglock_t), UM_SLEEP); 289 if (mdb_vread(clp, sizeof (cfglock_t), addr) == -1) { 291 mdb_free(clp, sizeof (cfglock_t)); 295 mdb_printf("%?p: %20s = %p\n", addr, "owner", clp->cl_owner); 297 clp->cl_reader ? "TRUE" : "FALSE"); 298 mdb_printf("%?s %20s = %d\n", "", "writers", clp->cl_writers); 300 addr + ((uintptr_t)clp->cl_mutex - (uintptr_t)clp)); 302 addr + ((uintptr_t)clp [all...] |
/illumos-gate/usr/src/uts/common/sys/ib/mgt/ibmf/ |
H A D | ibmf_impl.h | 99 #define IBMF_RECV_CB_SETUP(clp) { \ 100 ASSERT(MUTEX_HELD(&(clp)->ic_mutex)); \ 101 (clp)->ic_flags |= IBMF_CLIENT_RECV_CB_ACTIVE; \ 102 (clp)->ic_recvs_active++; \ 103 mutex_enter(&(clp)->ic_kstat_mutex); \ 104 IBMF_ADD32_KSTATS((clp), recvs_active, 1); \ 105 mutex_exit(&(clp)->ic_kstat_mutex); \ 108 #define IBMF_RECV_CB_CLEANUP(clp) { \ 109 ASSERT(MUTEX_HELD(&(clp)->ic_mutex)); \ 110 (clp) [all...] |
/illumos-gate/usr/src/cmd/priocntl/ |
H A D | priocntl.c | 1001 classpids_t *clp; local 1003 for (clp = clpids; clp != &clpids[nclass]; clp++) { 1004 if (strcmp(clp->clp_clname, clname) == 0) { 1005 if (clp->clp_npids == clp->clp_pidlistsz) 1006 increase_pidlist(clp); 1008 (clp->clp_pidlist)[clp 1017 increase_pidlist(classpids_t *clp) argument [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | modconf.c | 1222 sclass_t *clp; local 1233 clp = &sclass[cid]; 1234 rw_enter(clp->cl_lock, RW_WRITER); 1235 if (SCHED_INSTALLED(clp)) { 1238 rw_exit(clp->cl_lock); 1242 clp->cl_init = modl->sched_class->cl_init; 1243 clp->cl_funcs = modl->sched_class->cl_funcs; 1244 modl->sched_class = clp; 1245 disp_add(clp); 1247 rw_exit(clp 1266 sclass_t *clp; local [all...] |
/illumos-gate/usr/src/uts/common/io/lvm/md/ |
H A D | md_mddb.c | 2923 mddb_cfg_loc_t *clp, 2933 ldev = md_makedevice(md_targ_name_to_major(clp->l_driver), 2934 clp->l_mnum); 2936 if (ddi_name_to_major(clp->l_driver) == (major_t)-1) 2939 ldev = md_makedevice(ddi_name_to_major(clp->l_driver), 2940 clp->l_mnum); 2943 if (clp->l_devid != 0) { 2950 if (!mddb_devid_validate((ddi_devid_t)(uintptr_t)clp->l_devid, 2951 &ndev, clp->l_minor_name)) { 2954 (void) strcpy(clp 2921 ridev( mddb_ri_t **rip, mddb_cfg_loc_t *clp, dev32_t *dev_2b_fixed, int flag) argument 4383 locator2cfgloc( mddb_lb_t *lbp, mddb_cfg_loc_t *clp, int li, side_t sideno, mddb_did_ic_t *did_icp ) argument 4529 cfgloc2locator( mddb_lb_t *lbp, mddb_cfg_loc_t *clp, int li, side_t sideno, int index ) argument 8044 mddb_cfg_loc_t *clp; local 8276 mddb_cfg_loc_t *clp; local [all...] |
H A D | md_med.c | 490 med_clnt_destroy(CLIENT **clp) argument 492 if (*clp) { 493 if ((*clp)->cl_auth) { 494 AUTH_DESTROY((*clp)->cl_auth); 495 (*clp)->cl_auth = NULL; 497 CLNT_DESTROY(*clp); 498 *clp = NULL;
|
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibmf/ |
H A D | ibmf_msg.c | 512 ibmf_i_find_msg_client(ibmf_client_t *clp, ibmf_msg_impl_t *msgimplp, argument 521 tnf_opaque, clientp, clp, tnf_opaque, msg, msgimplp); 523 mutex_enter(&clp->ic_msg_mutex); 525 msgp = clp->ic_msg_list; 558 msgp = clp->ic_term_msg_list; 584 mutex_exit(&clp->ic_msg_mutex);
|
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_db_balance.c | 526 del_replicas(mdsetname_t *sp, md_ctlr_ctl_t *clp, md_error_t *ep) argument 533 for (c = clp; c != NULL; c = c->ctl_next) { 774 md_ctlr_ctl_t *clp, 789 for (c = clp; c != NULL; c = c->ctl_next) 797 for (c = clp; c != NULL; c = c->ctl_next) { 820 for (c = clp; c != NULL; c = c->ctl_next) { 1077 md_ctlr_ctl_t *clp, 1087 for (c = clp; c != NULL; c = c->ctl_next) { 1129 md_ctlr_ctl_t *clp, 1139 for (c = clp; 773 count_replicas( md_ctlr_ctl_t *clp, int min_reps ) argument 1075 morethan2_ctl_balance( mdsetname_t *sp, md_ctlr_ctl_t *clp, int min_reps, md_error_t *ep ) argument 1127 lessthan3_ctl_balance( mdsetname_t *sp, md_ctlr_ctl_t *clp, int min_reps, md_error_t *ep ) argument 1179 try_again( md_ctlr_ctl_t *clp, md_error_t *ep ) argument [all...] |
/illumos-gate/usr/src/uts/common/pcmcia/cs/ |
H A D | cs.c | 2186 client_t *clp; local 2214 clp = sp->client_list; 2216 while (clp) { 2217 if (clp->client_handle == client_handle) 2218 return (clp); 2219 clp = clp->next; 2240 client_t *clp; local 2248 if ((!(clp = cs_find_client(client_handle, &error))) || 2271 if (clp 2312 client_t *clp; local 2535 client_t *clp = NULL; local 3417 client_t *clp = NULL; local 8327 cs_get_socket(client_handle_t client_handle, uint32_t *socket, uint32_t *function, cs_socket_t **csp, client_t **clp) argument [all...] |
/illumos-gate/usr/src/cmd/fs.d/pcfs/fsck/ |
H A D | clusters.c | 576 ClusterInfo **clp; local 582 clp = &InUse[c - FIRST_CLUSTER]; 583 if (*clp != NULL) { 584 freeClusterInfo(*clp); 585 *clp = NULL;
|