/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_changelist.c | 407 if (clp->cl_list) { in changelist_free() 416 if (clp->cl_pool) in changelist_free() 419 free(clp); in changelist_free() 463 if (clp->cl_alldependents || clp->cl_allchildren || in change_one() 488 if (clp->cl_sorted) { in change_one() 604 changelist_free(clp); in changelist_gather() 608 clp->cl_list = uu_list_create(clp->cl_pool, NULL, in changelist_gather() 639 clp->cl_prop = prop; in changelist_gather() 646 return (clp); in changelist_gather() 696 if (clp->cl_sorted) { in changelist_gather() [all …]
|
H A D | libzfs_sendrecv.c | 2364 if (clp == NULL) { in recv_rename() 2412 if (clp != NULL) in recv_rename() 2413 changelist_free(clp); in recv_rename() 2475 prop_changelist_t *clp; in recv_destroy() local 2490 if (clp == NULL) in recv_destroy() 2513 changelist_free(clp); in recv_destroy() 3229 if (clp != NULL) { in zfs_receive_package() 4006 if (clp == NULL) { in zfs_receive_one() 4406 if (clp) { in zfs_receive_one() 4409 changelist_free(clp); in zfs_receive_one() [all …]
|
H A D | libzfs_mount.c | 529 prop_changelist_t *clp; in zfs_unmountall() local 532 clp = changelist_gather(zhp, ZFS_PROP_MOUNTPOINT, 0, flags); in zfs_unmountall() 533 if (clp == NULL) in zfs_unmountall() 536 ret = changelist_prefix(clp); in zfs_unmountall() 537 changelist_free(clp); in zfs_unmountall() 1065 prop_changelist_t *clp; in zfs_unshareall_proto() local 1068 clp = changelist_gather(zhp, ZFS_PROP_SHARENFS, 0, 0); in zfs_unshareall_proto() 1069 if (clp == NULL) in zfs_unshareall_proto() 1072 ret = changelist_unshare(clp, proto); in zfs_unshareall_proto() 1073 changelist_free(clp); in zfs_unshareall_proto()
|
/illumos-gate/usr/src/uts/common/disp/ |
H A D | class.c | 50 sclass_t *clp; in alloc_cid() local 61 for (clp = sclass; clp < &sclass[nclass]; clp++) in alloc_cid() 62 if (clp->cl_name[0] == '\0' && clp->cl_lock == NULL) in alloc_cid() 104 rw_exit(clp->cl_lock); in scheduler_load() 115 sclass_t *clp; in getcid() local 120 clp = &sclass[*cidp]; in getcid() 121 clp->cl_count++; in getcid() 134 clp->cl_count--; in getcid() 139 clp->cl_name = ""; in getcid() 151 sclass_t *clp; in getcidbyname_locked() local [all …]
|
H A D | disp.c | 306 disp_add(sclass_t *clp) in disp_add() argument 316 cl_maxglobpri = clp->cl_init(clp - sclass, PC_CLPARMSZ, &clp->cl_funcs); in disp_add()
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | clnt_raw.c | 87 if (clp != NULL) { in clnt_raw_create() 92 clp = calloc(1, sizeof (*clp)); in clnt_raw_create() 93 if (clp == NULL) { in clnt_raw_create() 108 xdrmem_create(&xdrs, clp->mashl_callmsg, sizeof (clp->mashl_callmsg), in clnt_raw_create() 112 free(clp); in clnt_raw_create() 150 if (clp == NULL) { in clnt_raw_call() 160 xdrmem_create(&xdrs, clp->raw_netbuf->buf, clp->raw_netbuf->maxlen, in clnt_raw_call() 165 if ((!XDR_PUTBYTES(&xdrs, clp->mashl_callmsg, clp->mcnt)) || in clnt_raw_call() 185 xdrmem_create(&xdrs, clp->raw_netbuf->buf, clp->raw_netbuf->len, in clnt_raw_call() 233 if (clp == NULL) { in clnt_raw_send() [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/ |
H A D | cfga_list.c | 449 (void) snprintf(clp->ap_log_id, sizeof (clp->ap_log_id), "%s%s%s", in create_pathinfo_ldata() 452 (void) snprintf(clp->ap_phys_id, sizeof (clp->ap_phys_id), "%s%s%s", in create_pathinfo_ldata() 501 clp->ap_busy = 0; in create_pathinfo_ldata() 637 (void) snprintf(clp->ap_log_id, sizeof (clp->ap_log_id), "%s", in do_stat_bus() 639 (void) snprintf(clp->ap_phys_id, sizeof (clp->ap_phys_id), "%s", in do_stat_bus() 645 clp->ap_cond = in do_stat_bus() 647 clp->ap_busy = 0; in do_stat_bus() 657 (void) snprintf(clp->ap_type, sizeof (clp->ap_type), in do_stat_bus() 665 (void) snprintf(clp->ap_type, sizeof (clp->ap_type), in do_stat_bus() 744 (void) snprintf(clp->ap_log_id, sizeof (clp->ap_log_id), "%s%s%s", in do_stat_dev() [all …]
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_devlink.c | 932 for (; clp != NULL; clp = clp->sib) { in write_links() 1172 for (; (clp = *pp) != NULL; pp = &clp->hash) { in link_hash() 1357 free(clp); in link_free() 1935 clp = clp->hash; in synchronize_db() 1945 clp = clp->hash; in synchronize_db() 2774 if (clp->path == NULL || clp->content == NULL) { in link_insert() 2965 for (clp = CACHE(hdp)->dngl; clp != NULL; clp = clp->sib) { in size_db() 3014 for (clp = cmnp->link; clp != NULL; clp = clp->sib) { in count_minor() 3624 clp ? clp->path : "<NULL>"); in walk_cache_links() 3633 for (; clp != NULL; clp = clp->sib) { in walk_cache_links() [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/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_list.c | 1517 (void) snprintf(clp->ap_log_id, sizeof (clp->ap_log_id), "%s", in do_stat_fca_xport() 2717 (void) snprintf(clp->ap_log_id, sizeof (clp->ap_log_id), in do_stat_FCP_dev() 2720 (void) snprintf(clp->ap_phys_id, sizeof (clp->ap_phys_id), in do_stat_FCP_dev() 3007 (void) snprintf(clp->ap_type, sizeof (clp->ap_type), in init_ldata_for_accessible_dev() 3015 snprintf(clp->ap_type, sizeof (clp->ap_type), "%s", in init_ldata_for_accessible_dev() 3018 (void) snprintf(clp->ap_type, sizeof (clp->ap_type), in init_ldata_for_accessible_dev() 3132 (void) snprintf(clp->ap_log_id, sizeof (clp->ap_log_id), in init_ldata_for_accessible_FCP_dev() 3135 (void) snprintf(clp->ap_phys_id, sizeof (clp->ap_phys_id), in init_ldata_for_accessible_FCP_dev() 3342 (void) snprintf(clp->ap_type, sizeof (clp->ap_type), "%s", in get_hw_info() 3350 (void) snprintf(clp->ap_type, sizeof (clp->ap_type), "%s", in get_hw_info() [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/ib/common/ |
H A D | cfga_ib.c | 1577 clp->ap_cond = CFGA_COND_OK; in ib_fill_static_apids() 1581 clp->ap_busy = 0; in ib_fill_static_apids() 1583 (void) snprintf(clp->ap_log_id, sizeof (clp->ap_log_id), "%s", in ib_fill_static_apids() 1585 (void) strlcpy(clp->ap_phys_id, ap_id, sizeof (clp->ap_phys_id)); in ib_fill_static_apids() 1592 sizeof (clp->ap_info)); in ib_fill_static_apids() 1612 sizeof (clp->ap_info)); in ib_fill_static_apids() 1748 clp = &(*ap_id_list[0]); in cfga_list_ext() 1881 clp->ap_log_id, clp->ap_info); in cfga_list_ext() 1927 clp->ap_r_state = in cfga_list_ext() 1941 clp->ap_o_state = in cfga_list_ext() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/ |
H A D | nfslogd.c | 640 nfsl_config_t *clp; in cycle_logs() local 644 for (clp = listp; clp != NULL; clp = clp->nc_next) { in cycle_logs() 650 if (clp->nc_logpath) { in cycle_logs() 653 if (clp->nc_transcookie != NULL) { in cycle_logs() 655 &clp->nc_transcookie); in cycle_logs() 658 error = cycle_log(clp->nc_logpath, in cycle_logs() 668 if (clp->nc_rpclogpath) { in cycle_logs() 900 for (; clp != NULL; clp = clp->nc_next) { in transactions_timeout() 901 if (clp->nc_transcookie != NULL) { in transactions_timeout() 916 for (; clp != NULL; clp = clp->nc_next) { in close_all_translogs() [all …]
|
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_connect.c | 650 struct conn_list *clp; in ndmp_connect_list_find() local 658 return (clp); in ndmp_connect_list_find() 680 struct conn_list *clp; in ndmp_connect_list_add() local 691 clp->cl_id = *id; in ndmp_connect_list_add() 716 struct conn_list *clp; in ndmp_connect_list_del() local 725 LIST_REMOVE(clp, cl_q); in ndmp_connect_list_del() 727 free(clp); in ndmp_connect_list_del() 748 struct conn_list *clp; in ndmp_connect_list_find_id() local 756 return (clp); in ndmp_connect_list_find_id() 1078 struct conn_list *clp; in ndmp_connect_list_get() local [all …]
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | class.h | 147 #define CL_ADMIN(clp, uaddr, reqpcredp) \ argument 148 (*(clp)->cl_funcs->sclass.cl_admin)(uaddr, reqpcredp) 163 #define CL_GETCLINFO(clp, clinfop) \ argument 164 (*(clp)->cl_funcs->sclass.cl_getclinfo)((void *)clinfop) 166 #define CL_GETCLPRI(clp, clprip) \ argument 167 (*(clp)->cl_funcs->sclass.cl_getclpri)(clprip) 172 #define CL_PARMSIN(clp, clparmsp) \ argument 173 (clp)->cl_funcs->sclass.cl_parmsin((void *)clparmsp) 175 #define CL_PARMSOUT(clp, clparmsp, vaparmsp) \ argument 178 #define CL_VAPARMSIN(clp, clparmsp, vaparmsp) \ argument [all …]
|
/illumos-gate/usr/src/uts/common/sys/ib/mgt/ibmf/ |
H A D | ibmf_impl.h | 99 #define IBMF_RECV_CB_SETUP(clp) { \ argument 100 ASSERT(MUTEX_HELD(&(clp)->ic_mutex)); \ 102 (clp)->ic_recvs_active++; \ 103 mutex_enter(&(clp)->ic_kstat_mutex); \ 105 mutex_exit(&(clp)->ic_kstat_mutex); \ 108 #define IBMF_RECV_CB_CLEANUP(clp) { \ argument 109 ASSERT(MUTEX_HELD(&(clp)->ic_mutex)); \ 110 (clp)->ic_recvs_active--; \ 111 mutex_enter(&(clp)->ic_kstat_mutex); \ 113 mutex_exit(&(clp)->ic_kstat_mutex); \ [all …]
|
/illumos-gate/usr/src/uts/common/rpc/ |
H A D | rdma_subr.c | 200 struct clist *clp; in clist_alloc() local 202 clp = kmem_cache_alloc(clist_cache, KM_SLEEP); in clist_alloc() 204 bzero(clp, sizeof (*clp)); in clist_alloc() 206 return (clp); in clist_alloc() 236 clist_add(struct clist **clp, uint32_t xdroff, int len, in clist_add() argument 244 while (*clp != NULL) in clist_add() 245 clp = &((*clp)->c_next); in clist_add() 258 *clp = cl; in clist_add()
|
H A D | xdr_rdma.c | 1365 xdrrdma_free_clist(CONN *conn, struct clist *clp) in xdrrdma_free_clist() argument 1367 rdma_buf_free(conn, &clp->rb_longbuf); in xdrrdma_free_clist() 1368 clist_free(clp); in xdrrdma_free_clist() 1506 struct clist *clp; in xdrrdma_read_a_chunk() local 1573 clp = xdrp->xp_rcl_xdr; in xdrrdma_read_a_chunk() 1574 while (clp->c_next != NULL) in xdrrdma_read_a_chunk() 1575 clp = clp->c_next; in xdrrdma_read_a_chunk() 1576 clp->c_next = rclp; in xdrrdma_read_a_chunk()
|
H A D | rpcib.c | 2309 struct clist *clp; in rib_send_and_wait() local 2326 clp = cl; in rib_send_and_wait() 2327 while (clp != NULL) { in rib_send_and_wait() 2332 sgl[nds].ds_va = clp->w.c_saddr; in rib_send_and_wait() 2334 sgl[nds].ds_len = clp->c_len; in rib_send_and_wait() 2335 total_msg_size += clp->c_len; in rib_send_and_wait() 2336 clp = clp->c_next; in rib_send_and_wait() 2478 struct clist *clp = cl; in rib_clnt_post() local 2552 while (clp != NULL) { in rib_clnt_post() 2555 clp = clp->c_next; in rib_clnt_post() [all …]
|
/illumos-gate/usr/src/cmd/priocntl/ |
H A D | priocntl.c | 985 classpids_t *clp; in add_pid_tolist() local 987 for (clp = clpids; clp != &clpids[nclass]; clp++) { in add_pid_tolist() 988 if (strcmp(clp->clp_clname, clname) == 0) { in add_pid_tolist() 989 if (clp->clp_npids == clp->clp_pidlistsz) in add_pid_tolist() 990 increase_pidlist(clp); in add_pid_tolist() 992 (clp->clp_pidlist)[clp->clp_npids] = pid; in add_pid_tolist() 993 clp->clp_npids++; in add_pid_tolist() 1001 increase_pidlist(classpids_t *clp) in increase_pidlist() argument 1003 if ((clp->clp_pidlist = realloc(clp->clp_pidlist, in increase_pidlist() 1004 (clp->clp_pidlistsz + NPIDS) * sizeof (pid_t))) == NULL) in increase_pidlist() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/ipp/ |
H A D | ipp.c | 281 cfglock_t *clp; in cfglock() local 286 clp = mdb_alloc(sizeof (cfglock_t), UM_SLEEP); in cfglock() 287 if (mdb_vread(clp, sizeof (cfglock_t), addr) == -1) { in cfglock() 289 mdb_free(clp, sizeof (cfglock_t)); in cfglock() 293 mdb_printf("%?p: %20s = %p\n", addr, "owner", clp->cl_owner); in cfglock() 295 clp->cl_reader ? "TRUE" : "FALSE"); in cfglock() 296 mdb_printf("%?s %20s = %d\n", "", "writers", clp->cl_writers); in cfglock() 298 addr + ((uintptr_t)clp->cl_mutex - (uintptr_t)clp)); in cfglock() 300 addr + ((uintptr_t)clp->cl_cv - (uintptr_t)clp)); in cfglock() 303 mdb_free(clp, sizeof (cfglock_t)); in cfglock()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | modconf.c | 1225 sclass_t *clp; in mod_installsched() local 1236 clp = &sclass[cid]; in mod_installsched() 1241 rw_exit(clp->cl_lock); in mod_installsched() 1247 modl->sched_class = clp; in mod_installsched() 1248 disp_add(clp); in mod_installsched() 1250 rw_exit(clp->cl_lock); in mod_installsched() 1269 sclass_t *clp; in mod_removesched() local 1282 clp = &sclass[cid]; in mod_removesched() 1287 clp->cl_init = NULL; in mod_removesched() 1288 clp->cl_funcs = NULL; in mod_removesched() [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibmf/ |
H A D | ibmf_msg.c | 510 ibmf_i_find_msg_client(ibmf_client_t *clp, ibmf_msg_impl_t *msgimplp, in ibmf_i_find_msg_client() argument 519 tnf_opaque, clientp, clp, tnf_opaque, msg, msgimplp); in ibmf_i_find_msg_client() 521 mutex_enter(&clp->ic_msg_mutex); in ibmf_i_find_msg_client() 523 msgp = clp->ic_msg_list; in ibmf_i_find_msg_client() 556 msgp = clp->ic_term_msg_list; in ibmf_i_find_msg_client() 582 mutex_exit(&clp->ic_msg_mutex); in ibmf_i_find_msg_client()
|
/illumos-gate/usr/src/uts/common/pcmcia/cs/ |
H A D | cs.c | 2184 client_t *clp; in cs_find_client() local 2214 while (clp) { in cs_find_client() 2216 return (clp); in cs_find_client() 2217 clp = clp->next; in cs_find_client() 2238 client_t *clp; in cs_destroy_client_handle() local 2270 clp->prev->next = clp->next; in cs_destroy_client_handle() 2287 clp->next->prev = clp->prev; in cs_destroy_client_handle() 2366 clp = clp->next; in cs_create_client_handle() 2370 clp->next->prev = clp; in cs_create_client_handle() 2371 clp = clp->next; in cs_create_client_handle() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/pcfs/fsck/ |
H A D | clusters.c | 575 ClusterInfo **clp; in clearInUse() local 581 clp = &InUse[c - FIRST_CLUSTER]; in clearInUse() 582 if (*clp != NULL) { in clearInUse() 583 freeClusterInfo(*clp); in clearInUse() 584 *clp = NULL; in clearInUse()
|
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibcm/ |
H A D | ibcm_sm.c | 7466 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*clp)) in ibcm_init_clp_to_mad() 7472 clp->RedirectTC_plus = in ibcm_init_clp_to_mad() 7475 clp->RedirectLID = h2b16(rinfo->rdi_dlid); in ibcm_init_clp_to_mad() 7477 clp->RedirectQ_Key = h2b32(rinfo->rdi_qkey); in ibcm_init_clp_to_mad() 7478 clp->RedirectP_Key = h2b16(rinfo->rdi_pkey); in ibcm_init_clp_to_mad() 7481 " RedirectLID= 0x%lX", clp->RedirectGID_hi, clp->RedirectGID_lo, in ibcm_init_clp_to_mad() 7482 clp->RedirectLID); in ibcm_init_clp_to_mad() 7484 _NOTE(NOW_VISIBLE_TO_OTHER_THREADS(*clp)) in ibcm_init_clp_to_mad() 7497 temp32 = b2h32(clp->RedirectTC_plus); in ibcm_init_clp_from_mad() 7501 rinfo->rdi_dlid = b2h16(clp->RedirectLID); in ibcm_init_clp_from_mad() [all …]
|