/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | inuse_mnt.c | 62 static void free_mnttab(struct mntpnt_list *listp); 64 struct mntpnt_list *listp); 75 struct mntpnt_list *listp; in inuse_mnt() local 103 listp = mntpoint_listp; in inuse_mnt() 104 while (listp != NULL) { in inuse_mnt() 105 if (libdiskmgt_str_eq(slice, listp->special)) { in inuse_mnt() 107 libdiskmgt_add_str(attrs, DM_USED_NAME, listp->mountp, errp); in inuse_mnt() 111 listp = listp->next; in inuse_mnt() 127 struct mntpnt_list *listp; in diff_mnttab() local 129 listp = firstp; in diff_mnttab() [all …]
|
H A D | inuse_fs.c | 71 static void free_vfstab(struct vfstab_list *listp); 129 struct vfstab_list *listp; in inuse_fs() local 130 listp = vfstab_listp; in inuse_fs() 132 while (listp != NULL) { in inuse_fs() 133 if (strcmp(slice, listp->special) == 0) { in inuse_fs() 136 if (listp->mountp != NULL) in inuse_fs() 137 mountp = listp->mountp; in inuse_fs() 143 listp = listp->next; in inuse_fs() 337 free_vfstab(struct vfstab_list *listp) in free_vfstab() argument 341 while (listp != NULL) { in free_vfstab() [all …]
|
H A D | inuse_lu.c | 64 static void free_lu(struct lu_list *listp); 102 struct lu_list *listp; in inuse_lu() local 104 listp = lu_listp; in inuse_lu() 105 while (listp != NULL) { in inuse_lu() 106 if (strcmp(slice, listp->slice) == 0) { in inuse_lu() 108 libdiskmgt_add_str(attrs, DM_USED_NAME, listp->name, errp); in inuse_lu() 112 listp = listp->next; in inuse_lu() 152 free_lu(struct lu_list *listp) { in free_lu() argument 156 while (listp != NULL) { in free_lu() 157 nextp = listp->next; in free_lu() [all …]
|
H A D | inuse_vxvm.c | 121 struct vxvm_list *listp; in inuse_vxvm() local 123 listp = vxvm_listp; in inuse_vxvm() 124 while (listp != NULL) { in inuse_vxvm() 125 if (strcmp(slice, listp->slice) == 0) { in inuse_vxvm() 133 listp = listp->next; in inuse_vxvm() 241 struct vxvm_list *listp = vxvm_listp; in free_vxvm() local 244 while (listp != NULL) { in free_vxvm() 245 nextp = listp->next; in free_vxvm() 246 free((void *)listp->slice); in free_vxvm() 247 free((void *)listp); in free_vxvm() [all …]
|
H A D | cache.c | 76 static int match_alias(alias_t *ap, alias_t *listp); 544 disk_t *listp; in del_drive() local 564 for (listp = disk_listp; listp != NULL; listp = listp->next) { in del_drive() 565 if (dp == listp) { in del_drive() 591 disk_t *listp; in del_drive_by_name() local 593 for (listp = disk_listp; listp != NULL; listp = listp->next) { in del_drive_by_name() 596 for (ap = listp->aliases; ap; ap = ap->next) { in del_drive_by_name() 598 del_drive(listp); in del_drive_by_name() 718 match_alias(alias_t *ap, alias_t *listp) in match_alias() argument 724 while (listp != NULL) { in match_alias() [all …]
|
/illumos-gate/usr/src/uts/intel/io/pci/ |
H A D | pci_memlist.c | 47 pci_memlist_dump(struct memlist *listp) in pci_memlist_dump() argument 49 dprintf("memlist 0x%p content: ", (void *)listp); in pci_memlist_dump() 50 while (listp) { in pci_memlist_dump() 52 listp->ml_address, listp->ml_size); in pci_memlist_dump() 53 listp = listp->ml_next; in pci_memlist_dump() 87 pci_memlist_insert(struct memlist **listp, uint64_t addr, uint64_t size) in pci_memlist_insert() argument 94 next = *listp; in pci_memlist_insert() 138 entry->ml_next = *listp; in pci_memlist_insert() 139 *listp = entry; in pci_memlist_insert() 155 pci_memlist_remove(struct memlist **listp, uint64_t addr, uint64_t size) in pci_memlist_remove() argument [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_list.c | 34 ldata_list_t *listp; member 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); in do_list() 238 assert(larg.listp == NULL); in do_list() 240 assert(larg.listp != NULL); in do_list() 255 list_free(&larg.listp); in do_list() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/db/db/ |
H A D | db_dispatch.c | 204 __db_txnlist_add(listp, txnid) in __db_txnlist_add() argument 205 void *listp; in __db_txnlist_add() 216 hp = (DB_TXNHEAD *)listp; 233 __db_txnlist_find(listp, txnid) in __db_txnlist_find() argument 234 void *listp; in __db_txnlist_find() 240 if ((hp = (DB_TXNHEAD *)listp) == NULL) 257 __db_txnlist_end(listp) in __db_txnlist_end() argument 258 void *listp; in __db_txnlist_end() 263 hp = (DB_TXNHEAD *)listp; 268 __os_free(listp, sizeof(DB_TXNHEAD)); [all …]
|
/illumos-gate/usr/src/cmd/fs.d/ufs/quotaon/ |
H A D | quotaon.c | 90 char **listp; in main() local 157 listp = listbuf; in main() 174 *listp = malloc(strlen(vfsbuf.vfs_special) + 1); in main() 175 strcpy(*listp, vfsbuf.vfs_special); in main() 176 listp++; in main() 188 listp = &listbuf[listcnt]; in main() 192 *listp = (char *)0; in main() 193 listp = listbuf; in main() 195 listp = &argv[optind]; in main() 226 (oneof(mntp.mnt_special, listp, listcnt) || in main() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | retire_store.c | 176 list_t *listp; in retire_list_free() local 182 listp = nvf_list(nvfh); in retire_list_free() 183 while (rsp = list_head(listp)) { in retire_list_free() 184 list_remove(listp, rsp); in retire_list_free() 250 list_t *listp; in rio_store_encode() local 265 listp = nvf_list(nvfh); in rio_store_encode() 266 for (rsp = list_head(listp); rsp; rsp = list_next(listp, rsp)) { in rio_store_encode() 322 list_t *listp; in e_ddi_retire_persist() local 333 listp = nvf_list(rio_store_handle); in e_ddi_retire_persist() 334 for (rsp = list_head(listp); rsp; rsp = list_next(listp, rsp)) { in e_ddi_retire_persist() [all …]
|
H A D | devid_cache.c | 225 list_t *listp; in devid_list_free() local 230 listp = nvf_list(fd); in devid_list_free() 231 while (np = list_head(listp)) { in devid_list_free() 232 list_remove(listp, np); in devid_list_free() 299 list_t *listp; in devid_cache_pack_list() local 310 listp = nvf_list(fd); in devid_cache_pack_list() 311 for (np = list_head(listp); np; np = list_next(listp, np)) { in devid_cache_pack_list() 520 list_t *listp; in e_devid_cache_register_cmn() local 556 listp = nvf_list(dcfd_handle); in e_devid_cache_register_cmn() 557 for (np = list_head(listp); np; np = list_next(listp, np)) { in e_devid_cache_register_cmn() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/grover/envd/ |
H A D | piclenvsetup.c | 241 add_node_to_list(picl_nodehdl_t nodeh, node_list_t *listp) in add_node_to_list() argument 248 return (listp); in add_node_to_list() 251 if (listp == NULL) { in add_node_to_list() 252 listp = el; in add_node_to_list() 253 return (listp); in add_node_to_list() 259 tmp = listp; in add_node_to_list() 264 return (listp); in add_node_to_list() 276 node_list_t *listp) in get_node_list_by_class() argument 293 listp = add_node_to_list(chdh, listp); in get_node_list_by_class() 295 listp = get_node_list_by_class(chdh, classname, listp); in get_node_list_by_class() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/excalibur/envd/ |
H A D | piclenvsetup.c | 264 add_node_to_list(picl_nodehdl_t nodeh, node_list_t *listp) in add_node_to_list() argument 271 return (listp); in add_node_to_list() 274 if (listp == NULL) { in add_node_to_list() 275 listp = el; in add_node_to_list() 276 return (listp); in add_node_to_list() 282 tmp = listp; in add_node_to_list() 287 return (listp); in add_node_to_list() 299 node_list_t *listp) in get_node_list_by_class() argument 316 listp = add_node_to_list(chdh, listp); in get_node_list_by_class() 318 listp = get_node_list_by_class(chdh, classname, listp); in get_node_list_by_class() [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/ |
H A D | cfga_list.c | 32 ldata_list_t *listp; member 51 static scfga_ret_t postprocess_list_data(const ldata_list_t *listp, 167 assert(larg.listp == NULL); in do_list() 169 assert(larg.listp != NULL); in do_list() 232 assert(larg.listp != NULL); in do_list() 235 ret = postprocess_list_data(larg.listp, cmd, larg.chld_config, &n); in do_list() 243 *llpp = larg.listp; in do_list() 247 if (ret != SCFGA_OK) list_free(&larg.listp); in do_list() 254 const ldata_list_t *listp, in postprocess_list_data() argument 266 if (listp == NULL) { in postprocess_list_data() [all …]
|
/illumos-gate/usr/src/uts/common/io/scsi/impl/ |
H A D | scsi_reset_notify.c | 42 struct scsi_reset_notify_entry **listp) in scsi_hba_reset_notify_setup() argument 48 p = *listp; in scsi_hba_reset_notify_setup() 59 *listp = p->next; in scsi_hba_reset_notify_setup() 72 p->next = *listp; in scsi_hba_reset_notify_setup() 73 *listp = p; in scsi_hba_reset_notify_setup() 84 scsi_hba_reset_notify_tear_down(struct scsi_reset_notify_entry *listp) in scsi_hba_reset_notify_tear_down() argument 88 p = listp; in scsi_hba_reset_notify_tear_down() 103 struct scsi_reset_notify_entry **listp) in scsi_hba_reset_notify_callback() argument 112 if ((p = *listp) == NULL) in scsi_hba_reset_notify_callback() 127 for (i = 0, p = *listp; i < count; i++, p = p->next) { in scsi_hba_reset_notify_callback()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/repquota/ |
H A D | repquota.c | 101 char **listp; in main() local 162 listp = listbuf; in main() 178 *listp = malloc(strlen(vfsbuf.vfs_special) + 1); in main() 179 (void) strcpy(*listp, vfsbuf.vfs_special); in main() 180 listp++; in main() 192 listp = &listbuf[listcnt]; in main() 196 *listp = (char *)0; in main() 197 listp = listbuf; in main() 199 listp = &argv[optind]; in main() 210 (oneof(mntp.mnt_special, listp, listcnt) || in main() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/db/log/ |
H A D | log_archive.c | 40 log_archive(dblp, listp, flags, db_malloc) in log_archive() argument 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) in __build_data() argument 183 char *pref, ***listp; 250 *listp = NULL; 315 *listp = array; [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | ptrlist.c | 184 void pack_ptr_list(struct ptr_list **listp) in pack_ptr_list() argument 186 struct ptr_list *head = *listp; in pack_ptr_list() 198 *listp = NULL; in pack_ptr_list() 206 *listp = next; in pack_ptr_list() 250 void **__add_ptr_list(struct ptr_list **listp, void *ptr) in __add_ptr_list() argument 252 struct ptr_list *list = *listp; in __add_ptr_list() 267 *listp = newlist; in __add_ptr_list() 293 void **__add_ptr_list_tag(struct ptr_list **listp, void *ptr, unsigned long tag) in __add_ptr_list_tag() argument 301 return __add_ptr_list(listp, ptr); in __add_ptr_list_tag() 437 void copy_ptr_list(struct ptr_list **listp, struct ptr_list *src) in copy_ptr_list() argument [all …]
|
/illumos-gate/usr/src/cmd/fs.d/ufs/quotacheck/ |
H A D | quotacheck.c | 121 char **listp; in main() local 188 listp = listbuf; in main() 202 *listp = malloc(strlen(vfsbuf.vfs_special) + 1); in main() 203 strcpy(*listp, vfsbuf.vfs_special); in main() 204 listp++; in main() 216 listp = &listbuf[listcnt]; in main() 220 *listp = (char *)0; in main() 221 listp = listbuf; in main() 223 listp = &argv[optind]; in main() 227 errs = preen(listcnt, listp); in main() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | nfslog_config.c | 237 nfsl_config_t *listp = NULL, *tail = NULL; in getconfiglist() local 299 listp = findconfig(listpp, tag, B_FALSE, &tail); in getconfiglist() 300 if (listp != NULL) { in getconfiglist() 305 error = update_config(listp, tag, defaultdir, in getconfiglist() 314 listp = create_config(tag, defaultdir, in getconfiglist() 317 if (listp == NULL) in getconfiglist() 321 *listpp = listp; in getconfiglist() 323 tail->nc_next = listp; in getconfiglist() 324 tail = listp; in getconfiglist() 704 getlastconfig(nfsl_config_t *listp) in getlastconfig() argument [all …]
|
/illumos-gate/usr/src/cmd/dis/ |
H A D | dis_list.c | 86 uu_list_t *listp; in dis_namelist_create() local 95 if ((listp = uu_list_create(unresolved_pool, NULL, 0)) == NULL) in dis_namelist_create() 98 return (listp); in dis_namelist_create() 182 uu_list_t *listp; in dis_namelist_resolve_sections() local 191 if ((listp = uu_list_create(resolved_pool, NULL, UU_DEFAULT)) == NULL) in dis_namelist_resolve_sections() 196 cb.cb_resolved = listp; in dis_namelist_resolve_sections() 215 return (listp); in dis_namelist_resolve_sections() 260 uu_list_t *listp; in dis_namelist_resolve_functions() local 265 if ((listp = uu_list_create(resolved_pool, NULL, UU_DEFAULT)) == NULL) in dis_namelist_resolve_functions() 270 cb.cb_resolved = listp; in dis_namelist_resolve_functions() [all …]
|
/illumos-gate/usr/src/uts/sun4v/os/ |
H A D | wdt.c | 85 mde_cookie_t *listp = NULL; in watchdog_init() local 119 listp = kmem_zalloc(listsz, KM_SLEEP); in watchdog_init() 122 md_find_name(mdp, "platform"), md_find_name(mdp, "fwd"), listp); in watchdog_init() 126 if (md_get_prop_val(mdp, listp[0], "watchdog-max-timeout", in watchdog_init() 131 kmem_free(listp, listsz); in watchdog_init() 150 if (md_get_prop_val(mdp, listp[0], "watchdog-resolution", in watchdog_init() 155 kmem_free(listp, listsz); in watchdog_init() 164 kmem_free(listp, listsz); in watchdog_init()
|
/illumos-gate/usr/src/cmd/sgs/gprof/common/ |
H A D | printlist.c | 46 addlist(struct stringlist *listp, char *funcname) in addlist() argument 57 slp->next = listp->next; in addlist() 59 listp->next = slp; in addlist() 63 onlist(struct stringlist *listp, char *funcname) in onlist() argument 67 for (slp = listp->next; slp; slp = slp->next) { in onlist()
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | dr_io.c | 173 dr_io_find_node_md(md_t *mdp, char *name, uint64_t id, mde_cookie_t *listp) in dr_io_find_node_md() argument 191 md_find_name(mdp, "fwd"), listp); in dr_io_find_node_md() 206 if (md_get_prop_str(mdp, listp[i], "name", &devnm)) { in dr_io_find_node_md() 215 if (md_get_prop_val(mdp, listp[i], "cfg-handle", &devid)) { in dr_io_find_node_md() 225 result = listp[i]; in dr_io_find_node_md() 401 mde_cookie_t *listp; in dr_vio_find_parent_md() local 406 listp = kmem_zalloc(listsz, KM_SLEEP); in dr_vio_find_parent_md() 408 __func__, (void *)listp, listsz); in dr_vio_find_parent_md() 412 md_find_name(mdp, "back"), listp); in dr_vio_find_parent_md() 417 pnode = listp[0]; in dr_vio_find_parent_md() [all …]
|
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | doscan.c | 600 FILE *iop, va_list *listp) in number() argument 682 va_arg(*listp, quadruple *), &efs); in number() 685 va_arg(*listp, quadruple *), in number() 693 va_arg(*listp, extended *), &efs); in number() 696 va_arg(*listp, extended *), in number() 705 va_arg(*listp, double *), &efs); in number() 708 va_arg(*listp, double *), in number() 713 va_arg(*listp, single *), &efs); in number() 716 va_arg(*listp, single *), in number() 801 *va_arg(*listp, long long *) = lcval; in number() [all …]
|