| /src/sys/contrib/openzfs/module/zfs/ |
| H A D | dsl_scan.c | 126 static void scan_ds_queue_clear(dsl_scan_t *scn); 127 static void scan_ds_prefetch_queue_clear(dsl_scan_t *scn); 128 static boolean_t scan_ds_queue_contains(dsl_scan_t *scn, uint64_t dsobj, 130 static void scan_ds_queue_insert(dsl_scan_t *scn, uint64_t dsobj, uint64_t txg); 131 static void scan_ds_queue_remove(dsl_scan_t *scn, uint64_t dsobj); 132 static void scan_ds_queue_sync(dsl_scan_t *scn, dmu_tx_t *tx); 134 static void read_by_block_level(dsl_scan_t *scn, zbookmark_phys_t zb); 235 #define DSL_SCAN_IS_SCRUB_RESILVER(scn) \ argument 236 ((scn)->scn_phys.scn_func == POOL_SCAN_SCRUB || \ 237 (scn)->scn_phys.scn_func == POOL_SCAN_RESILVER) [all …]
|
| /src/contrib/elftoolchain/libelf/ |
| H A D | libelf_extended.c | 51 Elf_Scn *scn; in _libelf_setshnum() local 54 if ((scn = _libelf_getscn0(e)) == NULL) in _libelf_setshnum() 57 assert(scn->s_ndx == SHN_UNDEF); in _libelf_setshnum() 60 scn->s_shdr.s_shdr32.sh_size = (Elf32_Word) shnum; in _libelf_setshnum() 62 scn->s_shdr.s_shdr64.sh_size = shnum; in _libelf_setshnum() 64 (void) elf_flagshdr(scn, ELF_C_SET, ELF_F_DIRTY); in _libelf_setshnum() 81 Elf_Scn *scn; in _libelf_setshstrndx() local 84 if ((scn = _libelf_getscn0(e)) == NULL) in _libelf_setshstrndx() 87 assert(scn->s_ndx == SHN_UNDEF); in _libelf_setshstrndx() 90 scn->s_shdr.s_shdr32.sh_link = (Elf32_Word) shstrndx; in _libelf_setshstrndx() [all …]
|
| H A D | elf_scn.c | 60 Elf_Scn *scn; in _libelf_load_section_headers() local 121 if ((scn = _libelf_allocate_scn(e, i)) == NULL) in _libelf_load_section_headers() 124 (*xlator)((unsigned char *) &scn->s_shdr, sizeof(scn->s_shdr), in _libelf_load_section_headers() 128 scn->s_offset = scn->s_rawoff = in _libelf_load_section_headers() 129 scn->s_shdr.s_shdr32.sh_offset; in _libelf_load_section_headers() 130 scn->s_size = scn->s_shdr.s_shdr32.sh_size; in _libelf_load_section_headers() 132 scn->s_offset = scn->s_rawoff = in _libelf_load_section_headers() 133 scn->s_shdr.s_shdr64.sh_offset; in _libelf_load_section_headers() 134 scn->s_size = scn->s_shdr.s_shdr64.sh_size; in _libelf_load_section_headers() 194 Elf_Scn *scn; in elf_newscn() local [all …]
|
| H A D | gelf_cap.c | 42 Elf_Scn *scn; in gelf_getcap() local 51 (scn = d->d_scn) == NULL || in gelf_getcap() 52 (e = scn->s_elf) == NULL) { in gelf_getcap() 61 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getcap() 63 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getcap() 101 Elf_Scn *scn; in gelf_update_cap() local 110 (scn = d->d_scn) == NULL || in gelf_update_cap() 111 (e = scn->s_elf) == NULL) { in gelf_update_cap() 120 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_cap() 122 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_cap()
|
| H A D | gelf_symshndx.c | 41 Elf_Scn *scn; in gelf_getsymshndx() local 51 if (lid == NULL || (scn = lid->d_scn) == NULL || in gelf_getsymshndx() 52 (e = scn->s_elf) == NULL || (e != ld->d_scn->s_elf) || in gelf_getsymshndx() 62 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getsymshndx() 64 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getsymshndx() 94 Elf_Scn *scn; in gelf_update_symshndx() local 104 if (lid == NULL || (scn = lid->d_scn) == NULL || in gelf_update_symshndx() 105 (e = scn->s_elf) == NULL || (e != ld->d_scn->s_elf)) { in gelf_update_symshndx() 114 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_symshndx() 116 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_symshndx()
|
| H A D | gelf_syminfo.c | 40 Elf_Scn *scn; in gelf_getsyminfo() local 49 (scn = d->d_scn) == NULL || in gelf_getsyminfo() 50 (e = scn->s_elf) == NULL) { in gelf_getsyminfo() 59 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getsyminfo() 61 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getsyminfo() 101 Elf_Scn *scn; in gelf_update_syminfo() local 110 (scn = d->d_scn) == NULL || in gelf_update_syminfo() 111 (e = scn->s_elf) == NULL) { in gelf_update_syminfo() 120 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_syminfo() 122 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_syminfo()
|
| H A D | gelf_dyn.c | 42 Elf_Scn *scn; in gelf_getdyn() local 51 (scn = d->d_scn) == NULL || in gelf_getdyn() 52 (e = scn->s_elf) == NULL) { in gelf_getdyn() 61 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getdyn() 63 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getdyn() 102 Elf_Scn *scn; in gelf_update_dyn() local 111 (scn = d->d_scn) == NULL || in gelf_update_dyn() 112 (e = scn->s_elf) == NULL) { in gelf_update_dyn() 121 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_dyn() 123 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_dyn()
|
| H A D | gelf_move.c | 42 Elf_Scn *scn; in gelf_getmove() local 51 (scn = d->d_scn) == NULL || in gelf_getmove() 52 (e = scn->s_elf) == NULL) { in gelf_getmove() 61 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getmove() 63 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getmove() 105 Elf_Scn *scn; in gelf_update_move() local 114 (scn = d->d_scn) == NULL || in gelf_update_move() 115 (e = scn->s_elf) == NULL) { in gelf_update_move() 124 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_move() 126 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_move()
|
| H A D | gelf_sym.c | 42 Elf_Scn *scn; in gelf_getsym() local 51 (scn = d->d_scn) == NULL || in gelf_getsym() 52 (e = scn->s_elf) == NULL) { in gelf_getsym() 61 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getsym() 63 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getsym() 104 Elf_Scn *scn; in gelf_update_sym() local 113 (scn = d->d_scn) == NULL || in gelf_update_sym() 114 (e = scn->s_elf) == NULL) { in gelf_update_sym() 123 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_sym() 125 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_sym()
|
| H A D | gelf_rel.c | 42 Elf_Scn *scn; in gelf_getrel() local 51 (scn = d->d_scn) == NULL || in gelf_getrel() 52 (e = scn->s_elf) == NULL) { in gelf_getrel() 61 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getrel() 63 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getrel() 107 Elf_Scn *scn; in gelf_update_rel() local 116 (scn = d->d_scn) == NULL || in gelf_update_rel() 117 (e = scn->s_elf) == NULL) { in gelf_update_rel() 126 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_rel() 128 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_rel()
|
| H A D | gelf_rela.c | 42 Elf_Scn *scn; in gelf_getrela() local 51 (scn = d->d_scn) == NULL || in gelf_getrela() 52 (e = scn->s_elf) == NULL) { in gelf_getrela() 61 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getrela() 63 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getrela() 109 Elf_Scn *scn; in gelf_update_rela() local 118 (scn = d->d_scn) == NULL || in gelf_update_rela() 119 (e = scn->s_elf) == NULL) { in gelf_update_rela() 128 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_rela() 130 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_rela()
|
| H A D | gelf_shdr.c | 90 gelf_update_shdr(Elf_Scn *scn, GElf_Shdr *s) in gelf_update_shdr() argument 97 if (s == NULL || scn == NULL || (e = scn->s_elf) == NULL || in gelf_update_shdr() 109 (void) elf_flagscn(scn, ELF_C_SET, ELF_F_DIRTY); in gelf_update_shdr() 112 scn->s_shdr.s_shdr64 = *s; in gelf_update_shdr() 116 sh32 = &scn->s_shdr.s_shdr32; in gelf_update_shdr()
|
| H A D | elf_end.c | 43 Elf_Scn *scn, *tscn; in elf_end() local 69 RB_FOREACH_SAFE(scn, scntree, &e->e_u.e_elf.e_scn, tscn) in elf_end() 70 scn = _libelf_release_scn(scn); in elf_end()
|
| H A D | libelf_checksum.c | 49 Elf_Scn *scn; in _libelf_checksum() local 79 if ((scn = elf_getscn(e, shn)) == NULL) in _libelf_checksum() 81 if (gelf_getshdr(scn, &shdr) == NULL) in _libelf_checksum() 89 while ((d = elf_rawdata(scn, d)) != NULL) in _libelf_checksum()
|
| /src/contrib/elftoolchain/libdwarf/ |
| H A D | libdwarf_elf_init.c | 137 Elf_Scn *scn; in _dwarf_elf_relocate() local 149 scn = NULL; in _dwarf_elf_relocate() 151 while ((scn = elf_nextscn(elf, scn)) != NULL) { in _dwarf_elf_relocate() 152 if (gelf_getshdr(scn, &sh) == NULL) { in _dwarf_elf_relocate() 162 if ((rel = elf_getdata(scn, NULL)) == NULL) { in _dwarf_elf_relocate() 208 _dwarf_elf_decompress(Dwarf_Debug dbg, Dwarf_Elf_Object *e, Elf_Scn *scn, in _dwarf_elf_decompress() argument 215 if (gelf_getchdr(scn, &chdr) == NULL) { in _dwarf_elf_decompress() 259 Elf_Scn *scn; in _dwarf_elf_init() local 307 scn = NULL; in _dwarf_elf_init() 309 while ((scn = elf_nextscn(elf, scn)) != NULL) { in _dwarf_elf_init() [all …]
|
| /src/lib/libkldelf/ |
| H A D | elf.c | 314 Elf_Scn *scn; in elf_read_shdrs() local 326 scn = elf_getscn(efile->ef_elf, i); in elf_read_shdrs() 327 if (scn == NULL) { in elf_read_shdrs() 331 if (gelf_getshdr(scn, &shdr[i]) == NULL) { in elf_read_shdrs() 350 Elf_Scn *scn; in elf_read_dynamic() local 355 scn = elf_getscn(efile->ef_elf, section_index); in elf_read_dynamic() 356 if (scn == NULL) in elf_read_dynamic() 358 if (gelf_getshdr(scn, &shdr) == NULL) in elf_read_dynamic() 360 data = elf_getdata(scn, NULL); in elf_read_dynamic() 386 Elf_Scn *scn; in elf_read_symbols() local [all …]
|
| /src/contrib/file/src/ |
| H A D | readcdf.c | 371 const cdf_stream_t *sst, const cdf_dir_t *dir, cdf_stream_t *scn) in cdf_file_catalog_info() argument 376 dir, "Catalog", scn)) == -1) in cdf_file_catalog_info() 379 cdf_dump_catalog(h, scn); in cdf_file_catalog_info() 381 if ((i = cdf_file_catalog(ms, h, scn)) == -1) in cdf_file_catalog_info() 389 const cdf_stream_t *sst, const cdf_dir_t *dir, cdf_stream_t *scn, in cdf_check_summary_info() argument 399 cdf_dump_summary_info(h, scn); in cdf_check_summary_info() 401 if ((i = cdf_file_summary_info(ms, h, scn, root_storage)) < 0) { in cdf_check_summary_info() 429 dir, scn); in cdf_check_summary_info() 549 cdf_stream_t sst, scn; in file_trycdf() local 555 scn.sst_tab = NULL; in file_trycdf() [all …]
|
| H A D | cdf.c | 332 cdf_zero_stream(cdf_stream_t *scn) in cdf_zero_stream() argument 334 scn->sst_len = 0; in cdf_zero_stream() 335 scn->sst_dirlen = 0; in cdf_zero_stream() 336 scn->sst_ss = 0; in cdf_zero_stream() 337 free(scn->sst_tab); in cdf_zero_stream() 338 scn->sst_tab = NULL; in cdf_zero_stream() 598 const cdf_sat_t *sat, cdf_secid_t sid, size_t len, cdf_stream_t *scn) in cdf_read_long_sector_chain() argument 602 scn->sst_tab = NULL; in cdf_read_long_sector_chain() 603 scn->sst_len = cdf_count_chain(sat, sid, ss); in cdf_read_long_sector_chain() 604 scn->sst_dirlen = MAX(h->h_min_size_standard_stream, len); in cdf_read_long_sector_chain() [all …]
|
| /src/sys/fs/msdosfs/ |
| H A D | msdosfs_lookup.c | 149 daddr_t scn; /* starting cluster number */ in msdosfs_lookup_ino() local 189 scn = MSDOSFSROOT; in msdosfs_lookup_ino() 451 scn = getushort(dep->deStartCluster); in msdosfs_lookup_ino() 453 scn |= getushort(dep->deHighClust) << 16; in msdosfs_lookup_ino() 454 if (scn == pmp->pm_rootdirblk) { in msdosfs_lookup_ino() 459 scn = MSDOSFSROOT; in msdosfs_lookup_ino() 464 cluster = scn; in msdosfs_lookup_ino() 486 if (FAT32(pmp) && scn == MSDOSFSROOT) in msdosfs_lookup_ino() 487 scn = pmp->pm_rootdirblk; in msdosfs_lookup_ino() 517 if (dp->de_StartCluster == scn && isadir) { /* "." */ in msdosfs_lookup_ino() [all …]
|
| /src/contrib/elftoolchain/elfcopy/ |
| H A D | binary.c | 50 Elf_Scn *scn; in create_binary() local 70 scn = NULL; in create_binary() 71 while ((scn = elf_nextscn(e, scn)) != NULL) { in create_binary() 72 if (gelf_getshdr(scn, &sh) == NULL) { in create_binary() 96 scn = NULL; in create_binary() 97 while ((scn = elf_nextscn(e, scn)) != NULL) { in create_binary() 98 if (gelf_getshdr(scn, &sh) == NULL) { in create_binary() 108 if ((d = elf_rawdata(scn, NULL)) == NULL) { in create_binary()
|
| H A D | ascii.c | 62 static void srec_write_symtab(int ofd, const char *ofn, Elf *e, Elf_Scn *scn, 81 Elf_Scn *scn; in create_srec() local 96 scn = NULL; in create_srec() 97 while ((scn = elf_nextscn(e, scn)) != NULL) { in create_srec() 98 if (gelf_getshdr(scn, &sh) == NULL) { in create_srec() 106 srec_write_symtab(ofd, ofn, e, scn, &sh); in create_srec() 118 scn = NULL; in create_srec() 119 while ((scn = elf_nextscn(e, scn)) != NULL) { in create_srec() 120 if (gelf_getshdr(scn, &sh) == NULL) { in create_srec() 160 scn = NULL; in create_srec() [all …]
|
| H A D | pe.c | 44 Elf_Scn *scn; in create_pe() local 115 scn = NULL; in create_pe() 116 while ((scn = elf_nextscn(e, scn)) != NULL) { in create_pe() 122 if (gelf_getshdr(scn, &sh) == NULL) { in create_pe() 140 if ((d = elf_getdata(scn, NULL)) == NULL) { in create_pe()
|
| /src/cddl/contrib/opensolaris/tools/ctf/cvt/ |
| H A D | util.c | 67 Elf_Scn *scn = NULL; in findelfsecidx() local 74 while ((scn = elf_nextscn(elf, scn)) != NULL) { in findelfsecidx() 77 if (gelf_getshdr(scn, &shdr) == NULL) { in findelfsecidx() 80 elf_ndxscn(scn)); in findelfsecidx() 87 elf_ndxscn(scn)); in findelfsecidx() 91 return (elf_ndxscn(scn)); in findelfsecidx()
|
| /src/cddl/contrib/opensolaris/cmd/lockstat/ |
| H A D | sym.c | 171 Elf_Scn *scn = NULL; in symtab_init() local 196 for (cnt = 1; (scn = elf_nextscn(elf, scn)) != NULL; cnt++) { in symtab_init() 198 (void) gelf_getshdr(scn, &shdr); in symtab_init() 200 symtab = (GElf_Sym *)elf_getdata(scn, NULL)->d_buf; in symtab_init() 206 for (cnt = 1; (scn = elf_nextscn(elf, scn)) != NULL; cnt++) { in symtab_init() 208 strtab = (char *)elf_getdata(scn, NULL)->d_buf; in symtab_init()
|
| /src/lib/libproc/ |
| H A D | proc_sym.c | 160 Elf_Scn *scn; in load_symtab() local 166 scn = NULL; in load_symtab() 167 while ((scn = elf_nextscn(e, scn)) != NULL) { in load_symtab() 168 (void)gelf_getshdr(scn, &shdr); in load_symtab() 172 if (scn == NULL) in load_symtab() 179 if ((symtab->data = elf_getdata(scn, NULL)) == NULL) in load_symtab() 242 Elf_Scn *scn; in open_object() local 270 scn = NULL; in open_object() 271 while ((scn = elf_nextscn(e, scn)) != NULL) { in open_object() 272 if (gelf_getshdr(scn, &shdr) != &shdr) { in open_object() [all …]
|