Searched defs:scn (Results 1 - 25 of 68) sorted by relevance

123

/illumos-gate/usr/src/cmd/sgs/libelf/common/
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 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 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 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 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 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)
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...]
/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/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/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) {
H A Dtpcom.c69 Elf_Scn *scn = NULL; local
80 while ((scn = elf_nextscn(elf, scn)) != NULL) {
86 if (gelf_getshdr(scn, &shdr) == NULL) {
104 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/size/common/
H A Dprocess.c92 Elf_Scn *scn; local
130 scn = 0;
142 if ((scn = elf_nextscn(elf, scn)) == 0) {
145 if (gelf_getshdr(scn, &shdr) == 0) {
/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/findfp/sparc/
H A Dfindfp.c83 Elf_Scn *scn; local
125 if ((scn = elf_getscn(elf, textidx)) == NULL ||
126 gelf_getshdr(scn, &shdr) == NULL ||
127 (text = elf_rawdata(scn, NULL)) == NULL)
/illumos-gate/usr/src/cmd/sgs/elfwrap/common/
H A Delfwrap.c288 Elf_Scn *scn; local
292 if ((scn = elf_newscn(oelf)) == NULL) {
297 if ((shdr = elf_getshdr(scn)) == NULL) {
309 if ((data = elf_newdata(scn)) == NULL) {
388 Elf_Scn *scn; local
391 if ((scn = elf_getscn(melf, outsec->os_ndx)) == NULL) {
396 if ((outsec->os_shdr = shdr = elf_getshdr(scn)) == NULL) {
401 if ((outsec->os_data = 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/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/test/util-tests/tests/ctf/
H A Dcheck-merge-static.c166 Elf_Scn *scn = NULL, *symscn = NULL; local
174 while ((scn = elf_nextscn(elf, scn)) != NULL) {
175 if (gelf_getshdr(scn, &symhdr) == NULL) {
182 symscn = scn;

Completed in 291 milliseconds

123