/illumos-gate/usr/src/uts/common/avs/ns/solaris/ |
H A D | nsc_list.h | 59 #define LS_ISEMPTY(listp) \ 60 (((ls_elt_t *)(listp))->ls_next == (ls_elt_t *)(listp)) 61 #define LS_INIT(listp) { \ 62 ((ls_elt_t *)(listp))->ls_next = \ 63 ((ls_elt_t *)(listp))->ls_prev = \ 64 ((ls_elt_t *)(listp)); \ 67 #define LS_REMOVE(listp) ls_remove((ls_elt_t *)(listp))
|
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | inuse_mnt.c | 64 static void free_mnttab(struct mntpnt_list *listp); 66 struct mntpnt_list *listp); 77 struct mntpnt_list *listp; local 105 listp = mntpoint_listp; 106 while (listp != NULL) { 107 if (libdiskmgt_str_eq(slice, listp->special)) { 109 libdiskmgt_add_str(attrs, DM_USED_NAME, listp->mountp, errp); 113 listp = listp->next; 129 struct mntpnt_list *listp; local 164 free_mnttab(struct mntpnt_list *listp) argument 181 in_list(struct mntpnt_list *elementp, struct mntpnt_list *listp) argument [all...] |
H A D | inuse_fs.c | 73 static void free_vfstab(struct vfstab_list *listp); 131 struct vfstab_list *listp; local 132 listp = vfstab_listp; 134 while (listp != NULL) { 135 if (strcmp(slice, listp->special) == 0) { 138 if (listp->mountp != NULL) 139 mountp = listp->mountp; 145 listp = listp->next; 339 free_vfstab(struct vfstab_list *listp) argument [all...] |
H A D | inuse_lu.c | 66 static void free_lu(struct lu_list *listp); 104 struct lu_list *listp; local 106 listp = lu_listp; 107 while (listp != NULL) { 108 if (strcmp(slice, listp->slice) == 0) { 110 libdiskmgt_add_str(attrs, DM_USED_NAME, listp->name, errp); 114 listp = listp->next; 154 free_lu(struct lu_list *listp) { argument 158 while (listp ! [all...] |
H A D | inuse_vxvm.c | 121 struct vxvm_list *listp; local 123 listp = vxvm_listp; 124 while (listp != NULL) { 125 if (strcmp(slice, listp->slice) == 0) { 133 listp = listp->next; 241 struct vxvm_list *listp = vxvm_listp; local 244 while (listp != NULL) { 245 nextp = listp->next; 246 free((void *)listp [all...] |
/illumos-gate/usr/src/uts/intel/io/pci/ |
H A D | pci_memlist.c | 44 memlist_dump(struct memlist *listp) argument 46 dprintf("memlist 0x%p content", (void *)listp); 47 while (listp) { 49 (int)(listp->ml_address >> 32), (int)listp->ml_address, 50 (int)(listp->ml_size >> 32), (int)listp->ml_size); 51 listp = listp->ml_next; 84 memlist_insert(struct memlist **listp, uint64_ argument 152 memlist_remove(struct memlist **listp, uint64_t addr, uint64_t size) argument 221 memlist_find(struct memlist **listp, uint64_t size, int align) argument 257 memlist_find_with_startaddr(struct memlist **listp, uint64_t address, uint64_t size, int align) argument 325 memlist_dup(struct memlist *listp) argument 346 memlist_count(struct memlist *listp) argument [all...] |
/illumos-gate/usr/src/cmd/sgs/gprof/common/ |
H A D | printlist.c | 48 addlist(struct stringlist *listp, char *funcname) argument 59 slp->next = listp->next; 61 listp->next = slp; 65 onlist(struct stringlist *listp, char *funcname) argument 69 for (slp = listp->next; slp; slp = slp->next) {
|
/illumos-gate/usr/src/cmd/sendmail/db/db/ |
H A D | db_dispatch.c | 204 __db_txnlist_add(listp, txnid) 205 void *listp; 216 hp = (DB_TXNHEAD *)listp; 233 __db_txnlist_find(listp, txnid) 234 void *listp; 240 if ((hp = (DB_TXNHEAD *)listp) == NULL) 257 __db_txnlist_end(listp) 258 void *listp; 263 hp = (DB_TXNHEAD *)listp; 268 __os_free(listp, sizeo [all...] |
/illumos-gate/usr/src/uts/common/io/scsi/impl/ |
H A D | scsi_reset_notify.c | 44 struct scsi_reset_notify_entry **listp) 50 p = *listp; 61 *listp = p->next; 74 p->next = *listp; 75 *listp = p; 86 scsi_hba_reset_notify_tear_down(struct scsi_reset_notify_entry *listp) argument 90 p = listp; 105 struct scsi_reset_notify_entry **listp) 114 if ((p = *listp) == NULL) 129 for (i = 0, p = *listp; 42 scsi_hba_reset_notify_setup(struct scsi_address *ap, int flag, void (*callback)(caddr_t), caddr_t arg, kmutex_t *mutex, struct scsi_reset_notify_entry **listp) argument 104 scsi_hba_reset_notify_callback(kmutex_t *mutex, struct scsi_reset_notify_entry **listp) argument [all...] |
/illumos-gate/usr/src/cmd/fs.d/ufs/quotaon/ |
H A D | quotaon.c | 92 char **listp; local 159 listp = listbuf; 176 *listp = malloc(strlen(vfsbuf.vfs_special) + 1); 177 strcpy(*listp, vfsbuf.vfs_special); 178 listp++; 190 listp = &listbuf[listcnt]; 194 *listp = (char *)0; 195 listp = listbuf; 197 listp = &argv[optind]; 228 (oneof(mntp.mnt_special, listp, listcn 274 char **listp = olistp; local [all...] |
/illumos-gate/usr/src/uts/common/sys/scsi/impl/ |
H A D | scsi_reset_notify.h | 67 struct scsi_reset_notify_entry *listp); 69 struct scsi_reset_notify_entry **listp);
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | retire_store.c | 176 list_t *listp; local 182 listp = nvf_list(nvfh); 183 while (rsp = list_head(listp)) { 184 list_remove(listp, rsp); 250 list_t *listp; local 265 listp = nvf_list(nvfh); 266 for (rsp = list_head(listp); rsp; rsp = list_next(listp, rsp)) { 322 list_t *listp; local 333 listp 372 list_t *listp; local 406 list_t *listp; local [all...] |
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_list.c | 34 ldata_list_t *listp; member in struct:__anon2393 75 static fpcfga_ret_t postprocess_list_data(const ldata_list_t *listp, 97 const ldata_list_t *listp, ldata_list_t **matchldpp, int *l_errno); 104 int *lun_nump, ldata_list_t *listp, ldata_list_t **ldatapp); 106 ldata_list_t *listp, ldata_list_t **ldatapp); 108 ldata_list_t *listp, ldata_list_t **ldatapp); 229 list_free(&larg.listp); 238 assert(larg.listp == NULL); 240 assert(larg.listp != NULL); 255 list_free(&larg.listp); 1108 postprocess_list_data( const ldata_list_t *listp, fpcfga_cmd_t cmd, cfga_stat_t chld_config, int *np, uint_t flags) argument 1434 ldata_list_t *listp = NULL; local 1576 ldata_list_t *listp = NULL; local 2126 ldata_list_t *matchldp = NULL, *listp = NULL; local 2463 ldata_list_t *listp = NULL; local 2749 is_dyn_ap_on_ldata_list(const char *port_wwn, const ldata_list_t *listp, ldata_list_t **matchldpp, int *l_errnop) argument 2876 ldata_list_t *listp = NULL; local 2977 ldata_list_t *listp = NULL; local 3045 ldata_list_t *listp = NULL, *listp_start = NULL, *listp_end = NULL, local 3525 insert_ldata_to_ldatalist( const char *port_wwn, int *lun_nump, ldata_list_t *listp, ldata_list_t **ldatapp) argument 3544 insert_fc_dev_ldata( const char *port_wwn, ldata_list_t *listp, ldata_list_t **ldatapp) argument 3594 insert_FCP_dev_ldata( const char *port_wwn, int lun_num, ldata_list_t *listp, ldata_list_t **ldatapp) argument [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | psiginfo.c | 54 const struct siginfolist *listp; local 64 } else if (((listp = &_sys_siginfolist[sip->si_signo-1]) != NULL) && 65 sip->si_code <= listp->nsiginfo) { 66 c = _libc_gettext(listp->vsiginfo[sip->si_code-1]);
|
/illumos-gate/usr/src/cmd/sendmail/db/log/ |
H A D | log_archive.c | 40 log_archive(dblp, listp, flags, db_malloc) 42 char ***listp; 82 return (__build_data(dblp, pref, listp, db_malloc)); 102 *listp = NULL; 151 *listp = NULL; 163 *listp = array; 181 __build_data(dblp, pref, listp, db_malloc) 183 char *pref, ***listp; 250 *listp = NULL; 315 *listp [all...] |
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/platform-mem/ |
H A D | mem_mdesc.c | 49 mdesc_init_n1(topo_mod_t *mod, md_t *mdp, mde_cookie_t *listp, argument 68 md_find_name(mdp, "fwd"), listp); 72 if (md_get_prop_str(mdp, listp[idx], "nac", &unum) < 0) 74 if (md_get_prop_str(mdp, listp[idx], "serial#", 77 if (md_get_prop_str(mdp, listp[idx], "part#", 113 listp); 117 if (md_get_prop_val(mdp, listp[idx], "size", &size) == 0) 202 find_grp(mde_cookie_t *listp, size_t n, mde_cookie_t *bclist, argument 217 if (listp[i] == *(bclist+j) && 233 create_grp(topo_mod_t *mod, mde_cookie_t *listp, size_ argument 256 mdesc_init_n2(topo_mod_t *mod, md_t *mdp, mde_cookie_t *listp, md_mem_info_t *mem, int num_comps) argument 428 mde_cookie_t *listp; local [all...] |
/illumos-gate/usr/src/uts/sun4v/os/ |
H A D | wdt.c | 85 mde_cookie_t *listp = NULL; local 119 listp = kmem_zalloc(listsz, KM_SLEEP); 122 md_find_name(mdp, "platform"), md_find_name(mdp, "fwd"), listp); 126 if (md_get_prop_val(mdp, listp[0], "watchdog-max-timeout", 131 kmem_free(listp, listsz); 150 if (md_get_prop_val(mdp, listp[0], "watchdog-resolution", 155 kmem_free(listp, listsz); 164 kmem_free(listp, listsz);
|
H A D | mach_mp_startup.c | 176 mde_cookie_t *listp = NULL; local 196 listp = kmem_zalloc(listsz, KM_SLEEP); 199 md_find_name(mdp, "fwd"), listp); 205 if (md_get_prop_val(mdp, listp[i], "id", &cpuid_prop)) 208 cpunode = listp[i]; 216 kmem_free(listp, listsz);
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/excalibur/envd/ |
H A D | piclenvsetup.c | 266 add_node_to_list(picl_nodehdl_t nodeh, node_list_t *listp) argument 273 return (listp); 276 if (listp == NULL) { 277 listp = el; 278 return (listp); 284 tmp = listp; 289 return (listp); 301 node_list_t *listp) 318 listp = add_node_to_list(chdh, listp); 300 get_node_list_by_class(picl_nodehdl_t nodeh, const char *classname, node_list_t *listp) argument 333 free_node_list(node_list_t *listp) argument 475 node_list_t *node_list, *listp; local 668 node_list_t *node_list, *listp; local [all...] |
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/grover/envd/ |
H A D | piclenvsetup.c | 243 add_node_to_list(picl_nodehdl_t nodeh, node_list_t *listp) argument 250 return (listp); 253 if (listp == NULL) { 254 listp = el; 255 return (listp); 261 tmp = listp; 266 return (listp); 278 node_list_t *listp) 295 listp = add_node_to_list(chdh, listp); 277 get_node_list_by_class(picl_nodehdl_t nodeh, const char *classname, node_list_t *listp) argument 310 free_node_list(node_list_t *listp) argument 452 node_list_t *node_list, *listp; local 630 node_list_t *node_list, *listp; local [all...] |
/illumos-gate/usr/src/cmd/streams/strcmd/ |
H A D | strconf.c | 191 * more_modules(listp, n) allocate space for 'n' modules in 'listp' 197 more_modules(struct str_list *listp, int n) argument 217 for (i = 0; i < listp->sl_nmods; ++i) 218 (void) strncpy(modp[i].l_name, listp->sl_modlist[i].l_name, 220 listp->sl_nmods = n; 221 listp->sl_modlist = modp;
|
/illumos-gate/usr/src/cmd/dis/ |
H A D | dis_list.c | 88 uu_list_t *listp; local 97 if ((listp = uu_list_create(unresolved_pool, NULL, 0)) == NULL) 100 return (listp); 184 uu_list_t *listp; local 193 if ((listp = uu_list_create(resolved_pool, NULL, UU_DEFAULT)) == NULL) 198 cb.cb_resolved = listp; 217 return (listp); 262 uu_list_t *listp; local 267 if ((listp = uu_list_create(resolved_pool, NULL, UU_DEFAULT)) == NULL) 272 cb.cb_resolved = listp; [all...] |
/illumos-gate/usr/src/cmd/lvm/metassist/layout/ |
H A D | layout_svm_util.c | 128 static void free_svm_snapshot(svm_snap_t *listp); 132 svm_snap_t **listp, 137 static int diskset_info(svm_snap_t **listp, mdsetname_t *sp); 139 static int load_svm(svm_snap_t **listp); 141 svm_snap_t **listp, 173 svm_snap_t *listp = NULL; local 237 for (listp = headp; listp != NULL && error == 0; listp = listp 1551 free_svm_snapshot(svm_snap_t *listp) argument 1566 add_record( svm_snap_t **listp, char *setname, svm_type_t type, char *mname, char *slice_name) argument 1607 diskset_info( svm_snap_t **listp, mdsetname_t *sp) argument 1824 load_svm( svm_snap_t **listp) argument 1894 new_entry( svm_snap_t **listp, char *slice_name, svm_type_t type, char *mname, mdsetname_t *sp) argument [all...] |
/illumos-gate/usr/src/cmd/fs.d/ufs/repquota/ |
H A D | repquota.c | 103 char **listp; local 164 listp = listbuf; 180 *listp = malloc(strlen(vfsbuf.vfs_special) + 1); 181 (void) strcpy(*listp, vfsbuf.vfs_special); 182 listp++; 194 listp = &listbuf[listcnt]; 198 *listp = (char *)0; 199 listp = listbuf; 201 listp = &argv[optind]; 212 (oneof(mntp.mnt_special, listp, listcn 372 char **listp = olistp; local [all...] |
/illumos-gate/usr/src/cmd/fs.d/ufs/quotacheck/ |
H A D | quotacheck.c | 123 char **listp; local 190 listp = listbuf; 204 *listp = malloc(strlen(vfsbuf.vfs_special) + 1); 205 strcpy(*listp, vfsbuf.vfs_special); 206 listp++; 218 listp = &listbuf[listcnt]; 222 *listp = (char *)0; 223 listp = listbuf; 225 listp = &argv[optind]; 229 errs = preen(listcnt, listp); 269 preen(int listcnt, char **listp) argument 615 char **listp = olistp; local [all...] |