Searched refs:scn (Results 1 - 25 of 73) sorted by relevance

123

/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dgetshdr.c38 getshdr(Elf_Scn * scn, int class) argument
42 if (scn == 0)
44 elf = scn->s_elf;
45 READLOCKS(elf, scn)
47 READUNLOCKS(elf, scn)
52 rc = scn->s_shdr;
53 READUNLOCKS(elf, scn)
58 elf32_getshdr(Elf_Scn * scn) argument
60 return ((Elf32_Shdr*) getshdr(scn, ELFCLASS32));
64 elf64_getshdr(Elf_Scn * scn) argument
[all...]
H A Dndxscn.c37 elf_ndxscn(Elf_Scn * scn) argument
42 if (scn == 0)
44 elf = scn->s_elf;
45 READLOCKS(elf, scn)
46 rc = scn->s_index;
47 READUNLOCKS(elf, scn)
H A Dnextscn.c37 elf_nextscn(Elf * elf, Elf_Scn * scn) argument
43 if (scn != 0) {
44 READLOCKS(elf, scn)
45 ret_scn = scn->s_next;
46 READUNLOCKS(elf, scn)
53 if ((scn = elf->ed_hdscn) != 0)
54 ret_scn = scn->s_next;
H A Dflag.c42 Elf_Scn * scn; local
48 scn = d->db_scn;
49 elf = scn->s_elf;
51 READLOCKS(elf, scn)
59 READUNLOCKS(elf, scn)
134 elf_flagscn(Elf_Scn * scn, Elf_Cmd cmd, unsigned flags) argument
139 if (scn == 0)
142 elf = scn->s_elf;
144 READLOCKS(elf, scn)
145 rc = scn
161 elf_flagshdr(Elf_Scn * scn, Elf_Cmd cmd, unsigned flags) argument
[all...]
H A Drawdata.c39 elf_rawdata(Elf_Scn * scn, Elf_Data * data) argument
46 if (scn == 0)
48 elf = scn->s_elf;
49 READLOCKS(elf, scn)
50 if ((scn->s_myflags & SF_READY) == 0) {
51 UPGRADELOCKS(elf, scn)
52 if ((scn->s_myflags & SF_READY) == 0)
53 (void) _elf_cookscn(scn);
54 DOWNGRADELOCKS(elf, scn)
58 d = scn
[all...]
H A Dgetphnum.c50 Elf_Scn *scn; local
61 if ((scn = elf_getscn(elf, 0)) == NULL ||
62 gelf_getshdr(scn, &shdr0) == NULL)
H A Dgetshnum.c54 Elf_Scn *scn; local
67 if ((scn = elf_getscn(elf, 0)) == 0)
69 if (gelf_getshdr(scn, &shdr0) == 0)
H A Dgetshstrndx.c48 Elf_Scn *scn; local
57 if ((scn = elf_getscn(elf, 0)) == 0)
59 if (gelf_getshdr(scn, &shdr0) == 0)
H A Dgetdata.c113 _elf_locked_getdata(Elf_Scn * scn, Elf_Data * data) argument
120 assert(!elf_threaded || RW_LOCK_HELD(&(scn->s_elf->ed_rwlock)));
121 assert(!elf_threaded || MUTEX_HELD(&(scn->s_mutex)));
122 elf = scn->s_elf;
124 if ((scn->s_myflags & SF_READY) == 0) {
125 UPGRADELOCKS(elf, scn)
130 if ((scn->s_myflags & SF_READY) == 0)
131 (void) _elf_cookscn(scn);
132 DOWNGRADELOCKS(elf, scn)
136 d = scn
298 elf_getdata(Elf_Scn * scn, Elf_Data * data) argument
[all...]
H A Dchecksum.c106 Elf_Scn * scn; local
133 if ((scn = elf_getscn(elf, shnum)) == 0)
135 if ((shdr = getshdr(scn)) == 0)
158 while ((data = (*getdata)(scn, data)) != 0)
/illumos-gate/usr/src/cmd/mdb/tools/common/
H A Dfindscn.c38 Elf_Scn *scn = NULL; local
45 while ((scn = elf_nextscn(elf, scn)) != NULL) {
48 if (gelf_getshdr(scn, &shdr) == NULL ||
54 return (elf_ndxscn(scn));
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Ddsl_scan.c122 static void scan_ds_queue_clear(dsl_scan_t *scn);
123 static boolean_t scan_ds_queue_contains(dsl_scan_t *scn, uint64_t dsobj,
125 static void scan_ds_queue_insert(dsl_scan_t *scn, uint64_t dsobj, uint64_t txg);
126 static void scan_ds_queue_remove(dsl_scan_t *scn, uint64_t dsobj);
127 static void scan_ds_queue_sync(dsl_scan_t *scn, dmu_tx_t *tx);
208 #define DSL_SCAN_IS_SCRUB_RESILVER(scn) \
209 ((scn)->scn_phys.scn_func == POOL_SCAN_SCRUB || \
210 (scn)->scn_phys.scn_func == POOL_SCAN_RESILVER)
226 /* In core node for the scn->scn_queue. Represents a dataset to be scanned */
325 avl_node_t spic_avl_node; /* link into scn
393 dsl_scan_is_running(const dsl_scan_t *scn) argument
445 dsl_scan_t *scn; local
581 dsl_scan_t *scn = dp->dp_scan; local
595 dsl_scan_restarting(dsl_scan_t *scn, dmu_tx_t *tx) argument
611 dsl_scan_is_paused_scrub(const dsl_scan_t *scn) argument
640 dsl_scan_sync_state(dsl_scan_t *scn, dmu_tx_t *tx, state_sync_type_t sync_type) argument
688 dsl_scan_t *scn = dmu_tx_pool(tx)->dp_scan; local
699 dsl_scan_t *scn = dmu_tx_pool(tx)->dp_scan; local
781 dsl_scan_t *scn = dp->dp_scan; local
853 dsl_scan_done(dsl_scan_t *scn, boolean_t complete, dmu_tx_t *tx) argument
982 dsl_scan_t *scn = dmu_tx_pool(tx)->dp_scan; local
993 dsl_scan_t *scn = dmu_tx_pool(tx)->dp_scan; local
1012 dsl_scan_t *scn = dp->dp_scan; local
1035 dsl_scan_t *scn = dp->dp_scan; local
1118 scan_ds_queue_clear(dsl_scan_t *scn) argument
1128 scan_ds_queue_contains(dsl_scan_t *scn, uint64_t dsobj, uint64_t *txg) argument
1140 scan_ds_queue_insert(dsl_scan_t *scn, uint64_t dsobj, uint64_t txg) argument
1154 scan_ds_queue_remove(dsl_scan_t *scn, uint64_t dsobj) argument
1167 scan_ds_queue_sync(dsl_scan_t *scn, dmu_tx_t *tx) argument
1222 dsl_scan_should_clear(dsl_scan_t *scn) argument
1268 dsl_scan_check_suspend(dsl_scan_t *scn, const zbookmark_phys_t *zb) argument
1346 dsl_scan_t *scn = dp->dp_scan; local
1376 dsl_scan_t *scn = dp->dp_scan; local
1453 scan_prefetch_ctx_create(dsl_scan_t *scn, dnode_phys_t *dnp, void *tag) argument
1506 dsl_scan_t *scn = spc->spc_scn; local
1547 dsl_scan_prefetch_dnode(dsl_scan_t *scn, dnode_phys_t *dnp, uint64_t objset, uint64_t object) argument
1581 dsl_scan_t *scn = spc->spc_scn; local
1643 dsl_scan_t *scn = arg; local
1709 dsl_scan_check_resume(dsl_scan_t *scn, const dnode_phys_t *dnp, const zbookmark_phys_t *zb) argument
1756 dsl_scan_recurse(dsl_scan_t *scn, dsl_dataset_t *ds, dmu_objset_type_t ostype, dnode_phys_t *dnp, const blkptr_t *bp, const zbookmark_phys_t *zb, dmu_tx_t *tx) argument
1855 dsl_scan_visitdnode(dsl_scan_t *scn, dsl_dataset_t *ds, dmu_objset_type_t ostype, dnode_phys_t *dnp, uint64_t object, dmu_tx_t *tx) argument
1875 &czb, dnp, ds, scn, ostype, tx); local
1884 dsl_scan_visitbp(blkptr_t *bp, const zbookmark_phys_t *zb, dnode_phys_t *dnp, dsl_dataset_t *ds, dsl_scan_t *scn, dmu_objset_type_t ostype, dmu_tx_t *tx) argument
1958 dsl_scan_visit_rootbp(dsl_scan_t *scn, dsl_dataset_t *ds, blkptr_t *bp, dmu_tx_t *tx) argument
2033 dsl_scan_t *scn = dp->dp_scan; local
2105 dsl_scan_t *scn = dp->dp_scan; local
2166 dsl_scan_t *scn = dp->dp_scan; local
2229 dsl_scan_t *scn = dp->dp_scan; local
2255 dsl_scan_visitds(dsl_scan_t *scn, uint64_t dsobj, dmu_tx_t *tx) argument
2412 dsl_scan_t *scn = dp->dp_scan; local
2447 dsl_scan_ddt_entry(dsl_scan_t *scn, enum zio_checksum checksum, ddt_entry_t *dde, dmu_tx_t *tx) argument
2518 dsl_scan_ddt(dsl_scan_t *scn, dmu_tx_t *tx) argument
2566 dsl_scan_visit(dsl_scan_t *scn, dmu_tx_t *tx) argument
2698 scan_io_queue_check_suspend(dsl_scan_t *scn) argument
2727 dsl_scan_t *scn = queue->q_scn; local
2840 dsl_scan_t *scn = queue->q_scn; local
3002 scan_io_queues_run(dsl_scan_t *scn) argument
3052 dsl_scan_async_block_should_pause(dsl_scan_t *scn) argument
3072 dsl_scan_t *scn = arg; local
3090 dsl_scan_update_stats(dsl_scan_t *scn) argument
3127 dsl_scan_t *scn = arg; local
3141 dsl_scan_active(dsl_scan_t *scn) argument
3242 dsl_scan_t *scn = dp->dp_scan; local
3391 dsl_scan_t *scn = dp->dp_scan; local
3660 count_block(dsl_scan_t *scn, zfs_all_blkstats_t *zab, const blkptr_t *bp) argument
3742 dsl_scan_t *scn = queue->q_scn; local
3767 dsl_scan_t *scn = queue->q_scn; local
3830 dsl_scan_t *scn = dp->dp_scan; local
3928 dsl_scan_t *scn = dp->dp_scan; local
4027 dsl_scan_t *scn = vd->vdev_spa->spa_dsl_pool->dp_scan; local
4050 dsl_scan_t *scn = queue->q_scn; local
4098 scan_io_queues_destroy(dsl_scan_t *scn) argument
4117 dsl_scan_t *scn = dp->dp_scan; local
4201 dsl_scan_t *scn = dp->dp_scan; local
[all...]
/illumos-gate/usr/src/cmd/sgs/libelf/demo/
H A Dacom.c48 Elf_Scn *scn = NULL; local
59 while ((scn = elf_nextscn(elf, scn)) != NULL) {
65 if (gelf_getshdr(scn, &shdr) == NULL) {
75 if (scn == NULL) {
83 if ((scn = elf_getscn(elf, shstrndx)) == NULL) {
88 if ((data = elf_getdata(scn, NULL)) == NULL) {
94 if ((data = elf_newdata(scn)) == NULL) {
108 if ((scn = elf_newscn(elf)) == NULL) {
113 if (gelf_getshdr(scn,
[all...]
H A Dpcom.c49 Elf_Scn *scn = NULL; local
63 while ((scn = elf_nextscn(elf, scn)) != NULL) {
69 if (gelf_getshdr(scn, &shdr) == NULL) {
83 if ((data = elf_getdata(scn, NULL)) == NULL) {
H A Ddcom.c87 Elf_Scn *scn = NULL; local
126 while ((scn = elf_nextscn(elf, scn)) != NULL) {
134 if (gelf_getshdr(scn, &shdr) == NULL) {
194 scn = NULL;
196 while ((scn = elf_nextscn(elf, scn)) != NULL) {
210 if (gelf_getshdr(scn, &shdr) == NULL) {
250 if ((data = elf_getdata(scn, 0)) == NULL) {
/illumos-gate/usr/src/cmd/dis/
H A Ddis_target.c133 tgt_scn_init(dis_tgt_t *tgt, dis_scn_t *scn, void *data) argument
139 tgt->dt_shnmap[*index].dm_name = scn->ds_name;
140 tgt->dt_shnmap[*index].dm_start = scn->ds_shdr.sh_addr;
141 tgt->dt_shnmap[*index].dm_length = scn->ds_shdr.sh_size;
147 if (scn->ds_shdr.sh_type == SHT_DYNSYM && tgt->dt_symidx == 0)
149 else if (scn->ds_shdr.sh_type == SHT_SYMTAB)
239 Elf_Scn *scn; local
252 for (scn = elf_nextscn(tgt->dt_elf, NULL); scn != NULL;
253 scn
757 Elf_Scn *scn; local
799 dis_section_istext(dis_scn_t *scn) argument
809 dis_section_data(dis_scn_t *scn) argument
818 dis_section_size(dis_scn_t *scn) argument
827 dis_section_addr(dis_scn_t *scn) argument
836 dis_section_name(dis_scn_t *scn) argument
845 dis_section_copy(dis_scn_t *scn) argument
859 dis_section_free(dis_scn_t *scn) argument
874 Elf_Scn *scn; local
[all...]
H A Ddis_main.c400 dis_text_section(dis_tgt_t *tgt, dis_scn_t *scn, void *data) argument
405 if (!dis_section_istext(scn))
409 (void) printf("\nsection %s\n", dis_section_name(scn));
411 dis_data(tgt, dhp, dis_section_addr(scn), dis_section_data(scn),
412 dis_section_size(scn));
430 dis_named_section(dis_scn_t *scn, int type, void *data) argument
435 (void) printf("\nsection %s\n", dis_section_name(scn));
439 dump_data(0, dis_section_data(scn), dis_section_size(scn));
[all...]
/illumos-gate/usr/src/cmd/mdb/tools/findfp/common/
H A Dfindsym.c42 Elf_Scn *scn; local
48 if ((scn = elf_getscn(elf, symtabidx)) == NULL ||
49 gelf_getshdr(scn, &shdr) == NULL ||
50 (symtab = elf_getdata(scn, NULL)) == NULL)
/illumos-gate/usr/src/cmd/boot/symdef/
H A Dsymdef.c63 Elf_Scn *scn = NULL; local
93 while ((scn = elf_nextscn(elfp, scn)) != NULL) {
94 if ((gelf_getshdr(scn, &shdr) == NULL) ||
97 ((symdata = elf_getdata(scn, NULL)) == NULL))
/illumos-gate/usr/src/cmd/isns/isnsd/
H A Disns_scn.h34 /* raw scn data type */
49 /* scn context data type */
62 /* portal data type stroed in scn registry */
84 /* scn trigger uint */
85 typedef struct scn { struct
91 struct scn *next;
94 /* scn registry list */
104 scn_t *scn; member in struct:scn_registry
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_convert.c37 Elf_Scn *scn, *strscn; local
42 scn = NULL;
43 while ((scn = elf_nextscn(elf, scn)) != NULL) {
44 if (gelf_getshdr(scn, &shdr) == NULL) {
55 if (scn == NULL)
64 if ((data = elf_getdata(scn, NULL)) == NULL) {
/illumos-gate/usr/src/cmd/mdb/tools/setdynflag/common/
H A Dsetdynflag.c88 Elf_Scn *scn; local
105 if ((scn = elf_getscn(elf, secidx)) == NULL)
108 if (gelf_getshdr(scn, &shdr) == NULL)
111 if ((data = elf_getdata(scn, NULL)) == NULL)
/illumos-gate/usr/src/cmd/sgs/elfedit/common/
H A Delfedit_machelf.c128 Elf_Scn *scn; local
169 LIBELF((scn = elf_getscn(tstate.os_elf, tstate.os_shstrndx)),
171 LIBELF((data = elf_getdata(scn, NULL)), MSG_ORIG(MSG_ELF_GETDATA))
179 for (ndx = 1, scn = NULL; scn = elf_nextscn(tstate.os_elf, scn);
183 LIBELF(shdr = elf_getshdr(scn), MSG_ORIG(MSG_ELF_GETSHDR));
251 LIBELF(scn = elf_getscn(tstate.os_elf, 0),
253 _cache->sec_scn = scn;
254 LIBELF(_cache->sec_shdr = elf_getshdr(scn), MSG_ORI
[all...]
/illumos-gate/usr/src/cmd/abi/appcert/static_prof/
H A Dstatic_prof.c612 Elf_Scn *scn; /* temp section header pointer */ local
631 scn = 0;
633 while ((scn = elf_nextscn(c->obj->elf, scn)) != 0) {
636 scurrent = elf64_getshdr(scn);
638 scurrent = elf32_getshdr(scn);
644 if ((ddata = elf_getdata(scn, ddata)) == 0 ||
653 /* get scn descriptor of dynamic string table */
654 scn = elf_getscn(c->obj->elf, index);
657 scurrent = elf64_getshdr(scn);
690 Elf_Scn *scn, *scn2; local
865 Elf_Scn *scn = elf_getscn(elf_file, shndx); local
1185 Elf_Scn *scn; local
1267 Elf_Scn *scn, *scnfd; local
[all...]
/illumos-gate/usr/src/cmd/lockstat/
H A Dsym.c140 Elf_Scn *scn = NULL; local
155 for (cnt = 1; (scn = elf_nextscn(elf, scn)) != NULL; cnt++) {
156 Shdr *shdr = elf_getshdr(scn);
158 symtab = (Sym *)elf_getdata(scn, NULL)->d_buf;
164 for (cnt = 1; (scn = elf_nextscn(elf, scn)) != NULL; cnt++) {
166 strtab = (char *)elf_getdata(scn, NULL)->d_buf;

Completed in 252 milliseconds

123