Home
last modified time | relevance | path

Searched refs:clp (Results 1 – 25 of 30) sorted by relevance

12

/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_changelist.c96 changelist_prefix(prop_changelist_t *clp) in changelist_prefix() argument
101 if (clp->cl_prop != ZFS_PROP_MOUNTPOINT && in changelist_prefix()
102 clp->cl_prop != ZFS_PROP_SHARESMB) in changelist_prefix()
105 for (cn = uu_list_first(clp->cl_list); cn != NULL; in changelist_prefix()
106 cn = uu_list_next(clp->cl_list, cn)) { in changelist_prefix()
125 switch (clp->cl_prop) { in changelist_prefix()
128 clp->cl_mflags) != 0) { in changelist_prefix()
144 (void) changelist_postfix(clp); in changelist_prefix()
159 changelist_postfix(prop_changelist_t *clp) in changelist_postfix() argument
176 if ((cn = uu_list_last(clp->cl_list)) == NULL) in changelist_postfix()
[all …]
H A Dlibzfs_sendrecv.c2355 prop_changelist_t *clp = NULL; in recv_rename() local
2363 clp = changelist_gather(zhp, ZFS_PROP_NAME, 0, in recv_rename()
2365 if (clp == NULL) { in recv_rename()
2369 err = changelist_prefix(clp); in recv_rename()
2381 changelist_rename(clp, name, tryname); in recv_rename()
2397 changelist_rename(clp, name, newname); in recv_rename()
2410 (void) changelist_postfix(clp); in recv_rename()
2413 if (clp != NULL) in recv_rename()
2414 changelist_free(clp); in recv_rename()
2476 prop_changelist_t *clp; in recv_destroy() local
[all …]
H A Dlibzfs_mount.c529 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 Dclass.c50 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()
65 if (clp == &sclass[nclass]) { in alloc_cid()
68 *cidp = clp - &sclass[0]; in alloc_cid()
69 clp->cl_lock = kmem_alloc(sizeof (krwlock_t), KM_SLEEP); in alloc_cid()
70 clp->cl_name = kmem_alloc(strlen(clname) + 1, KM_SLEEP); in alloc_cid()
71 (void) strcpy(clp->cl_name, clname); in alloc_cid()
72 rw_init(clp->cl_lock, NULL, RW_DEFAULT, NULL); in alloc_cid()
83 scheduler_load(char *clname, sclass_t *clp) in scheduler_load() argument
[all …]
H A Ddisp.c306 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 Dclnt_raw.c77 struct clnt_raw_private *clp; in clnt_raw_create() local
86 clp = clnt_raw_private; in clnt_raw_create()
87 if (clp != NULL) { in clnt_raw_create()
89 return (&clp->client_object); in clnt_raw_create()
92 clp = calloc(1, sizeof (*clp)); in clnt_raw_create()
93 if (clp == NULL) { in clnt_raw_create()
98 clp->raw_netbuf = &_rawcomnetbuf; 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()
119 clp->mcnt = XDR_GETPOS(&xdrs) - start; in clnt_raw_create()
[all …]
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/
H A Dcfga_list.c62 static void get_hw_info(di_node_t node, cfga_list_data_t *clp, dyncomp_t type);
420 cfga_list_data_t *clp; in create_pathinfo_ldata() local
434 clp = &listp->ldata; in create_pathinfo_ldata()
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()
458 clp->ap_class[0] = '\0'; in create_pathinfo_ldata()
459 clp->ap_r_state = lap->hba_rstate; in create_pathinfo_ldata()
461 clp->ap_o_state = CFGA_STAT_CONFIGURED; in create_pathinfo_ldata()
483 (void) snprintf(clp->ap_info, CFGA_INFO_LEN, in create_pathinfo_ldata()
488 get_hw_info(client_node, clp, PATH_APID); in create_pathinfo_ldata()
[all …]
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_devlink.c637 cache_link_t *clp; in read_links() local
663 clp = link_insert(hdp, pcmp, path, content, dlp->attr); in read_links()
664 if (clp == NULL) { in read_links()
670 nidx, clp->path, pcmp == NULL ? "(DANGLING)" : ""); in read_links()
931 cache_link_t *clp, in write_links() argument
941 if (clp != NULL && ((pdmp == NULL) ^ (clp == CACHE(hdp)->dngl))) { in write_links()
948 for (; clp != NULL; clp = clp->sib) { in write_links()
950 assert(clp->path != NULL); in write_links()
952 if ((pdmp == NULL) ^ (clp->minor == NULL)) { in write_links()
954 "%s: invalid minor for link(%s)\n", fcn, clp->path); in write_links()
[all …]
H A Ddevinfo_devlink.h312 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 Dcfga_list.c89 static void get_hw_info(di_node_t node, cfga_list_data_t *clp);
1433 cfga_list_data_t *clp = NULL; in do_stat_fca_xport() local
1515 clp = &listp->ldata; in do_stat_fca_xport()
1517 (void) snprintf(clp->ap_log_id, sizeof (clp->ap_log_id), "%s", in do_stat_fca_xport()
1519 (void) snprintf(clp->ap_phys_id, sizeof (clp->ap_phys_id), "%s", in do_stat_fca_xport()
1522 clp->ap_class[0] = '\0'; /* Filled by libcfgadm */ in do_stat_fca_xport()
1523 clp->ap_r_state = lap->xport_rstate; in do_stat_fca_xport()
1524 clp->ap_o_state = lap->chld_config; in do_stat_fca_xport()
1525 clp->ap_cond = cond; in do_stat_fca_xport()
1526 clp->ap_busy = 0; in do_stat_fca_xport()
[all …]
/illumos-gate/usr/src/lib/cfgadm_plugins/ib/common/
H A Dcfga_ib.c1554 ib_fill_static_apids(char *ap_id, cfga_list_data_t *clp) in ib_fill_static_apids() argument
1577 clp->ap_cond = CFGA_COND_OK; in ib_fill_static_apids()
1578 clp->ap_r_state = CFGA_STAT_CONNECTED; in ib_fill_static_apids()
1579 clp->ap_o_state = CFGA_STAT_CONFIGURED; in ib_fill_static_apids()
1580 clp->ap_class[0] = '\0'; /* Filled by libcfgadm */ in ib_fill_static_apids()
1581 clp->ap_busy = 0; in ib_fill_static_apids()
1582 clp->ap_status_time = (time_t)-1; 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()
1589 (void) strlcpy(clp->ap_type, IB_FABRIC_TYPE, in ib_fill_static_apids()
[all …]
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/
H A Dnfslogd.c640 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()
651 if (is_cycle_needed(clp->nc_logpath, &processed_list, in cycle_logs()
653 if (clp->nc_transcookie != NULL) { in cycle_logs()
655 &clp->nc_transcookie); in cycle_logs()
656 assert(clp->nc_transcookie == NULL); in cycle_logs()
658 error = cycle_log(clp->nc_logpath, in cycle_logs()
668 if (clp->nc_rpclogpath) { in cycle_logs()
669 if (is_cycle_needed(clp->nc_rpclogpath, &processed_list, in cycle_logs()
[all …]
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_connect.c72 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; in ndmp_connect_list_find() local
655 LIST_FOREACH(clp, &cl_head, cl_q) { in ndmp_connect_list_find()
656 if (clp->cl_conn == connection) { in ndmp_connect_list_find()
658 return (clp); in ndmp_connect_list_find()
680 struct conn_list *clp; in ndmp_connect_list_add() local
687 if ((clp = ndmp_malloc(sizeof (struct conn_list))) == NULL) in ndmp_connect_list_add()
690 clp->cl_conn = connection; in ndmp_connect_list_add()
691 clp->cl_id = *id; in ndmp_connect_list_add()
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dclass.h147 #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
176 (clp)->cl_funcs->sclass.cl_parmsout((void *)clparmsp, vaparmsp)
[all …]
/illumos-gate/usr/src/uts/common/sys/ib/mgt/ibmf/
H A Dibmf_impl.h99 #define IBMF_RECV_CB_SETUP(clp) { \ argument
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) { \ argument
109 ASSERT(MUTEX_HELD(&(clp)->ic_mutex)); \
110 (clp)->ic_recvs_active--; \
[all …]
/illumos-gate/usr/src/uts/common/rpc/
H A Drdma_subr.c200 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 Dxdr_rdma.c1364 xdrrdma_free_clist(CONN *conn, struct clist *clp) in xdrrdma_free_clist() argument
1366 rdma_buf_free(conn, &clp->rb_longbuf); in xdrrdma_free_clist()
1367 clist_free(clp); in xdrrdma_free_clist()
1505 struct clist *clp; in xdrrdma_read_a_chunk() local
1572 clp = xdrp->xp_rcl_xdr; in xdrrdma_read_a_chunk()
1573 while (clp->c_next != NULL) in xdrrdma_read_a_chunk()
1574 clp = clp->c_next; in xdrrdma_read_a_chunk()
1575 clp->c_next = rclp; in xdrrdma_read_a_chunk()
H A Drpcib.c301 static rdma_stat rib_recv(CONN *conn, struct clist **clp, uint32_t msgid);
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()
2333 sgl[nds].ds_key = clp->c_smemhandle.mrc_lmr; /* lkey */ 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
[all …]
/illumos-gate/usr/src/cmd/priocntl/
H A Dpriocntl.c985 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 Dipp.c281 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 Dmodconf.c1225 sclass_t *clp; in mod_installsched() local
1236 clp = &sclass[cid]; in mod_installsched()
1237 rw_enter(clp->cl_lock, RW_WRITER); in mod_installsched()
1238 if (SCHED_INSTALLED(clp)) { in mod_installsched()
1241 rw_exit(clp->cl_lock); in mod_installsched()
1245 clp->cl_init = modl->sched_class->cl_init; in mod_installsched()
1246 clp->cl_funcs = modl->sched_class->cl_funcs; 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()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibmf/
H A Dibmf_msg.c510 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 Dcs.c2184 client_t *clp; in cs_find_client() local
2212 clp = sp->client_list; in cs_find_client()
2214 while (clp) { in cs_find_client()
2215 if (clp->client_handle == client_handle) 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
2246 if ((!(clp = cs_find_client(client_handle, &error))) || in cs_destroy_client_handle()
2269 if (clp->prev) { in cs_destroy_client_handle()
2270 clp->prev->next = clp->next; in cs_destroy_client_handle()
[all …]
/illumos-gate/usr/src/cmd/fs.d/pcfs/fsck/
H A Dclusters.c586 ClusterInfo **clp; in clearInUse() local
592 clp = &InUse[c - FIRST_CLUSTER]; in clearInUse()
593 if (*clp != NULL) { in clearInUse()
594 freeClusterInfo(*clp); in clearInUse()
595 *clp = NULL; in clearInUse()
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibcm/
H A Dibcm_sm.c452 static void ibcm_init_clp_to_mad(ibcm_classportinfo_msg_t *clp,
455 static void ibcm_init_clp_from_mad(ibcm_classportinfo_msg_t *clp,
7463 ibcm_init_clp_to_mad(ibcm_classportinfo_msg_t *clp, ibt_redirect_info_t *rinfo) in ibcm_init_clp_to_mad() argument
7466 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*clp)) in ibcm_init_clp_to_mad()
7468 bcopy(&ibcm_clpinfo, clp, sizeof (ibcm_clpinfo)); in ibcm_init_clp_to_mad()
7470 clp->RedirectGID_hi = h2b64(rinfo->rdi_gid.gid_prefix); in ibcm_init_clp_to_mad()
7471 clp->RedirectGID_lo = h2b64(rinfo->rdi_gid.gid_guid); 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()
7476 clp->RedirectQP_plus = h2b32(rinfo->rdi_qpn & 0xffffff); in ibcm_init_clp_to_mad()
[all …]

12