Lines Matching refs:scn
49 load_shdr_wrlock (Elf_Scn *scn) in ElfW2()
54 Elf *elf = scn->elf; in ElfW2()
58 result = scn->shdr.ELFW(e,LIBELFBITS); in ElfW2()
207 result = scn->shdr.ELFW(e,LIBELFBITS); in ElfW2()
215 scn_valid (Elf_Scn *scn) in scn_valid() argument
217 if (scn == NULL) in scn_valid()
220 if (unlikely (scn->elf->state.elf.ehdr == NULL)) in scn_valid()
226 if (unlikely (scn->elf->class != ELFW(ELFCLASS,LIBELFBITS))) in scn_valid()
236 __elfw2(LIBELFBITS,getshdr_rdlock) (scn)
237 Elf_Scn *scn;
241 if (!scn_valid (scn))
244 result = scn->shdr.ELFW(e,LIBELFBITS);
247 rwlock_unlock (scn->elf->lock);
248 rwlock_wrlock (scn->elf->lock);
249 result = scn->shdr.ELFW(e,LIBELFBITS);
251 result = load_shdr_wrlock (scn);
258 __elfw2(LIBELFBITS,getshdr_wrlock) (scn)
259 Elf_Scn *scn;
263 if (!scn_valid (scn))
266 result = scn->shdr.ELFW(e,LIBELFBITS);
268 result = load_shdr_wrlock (scn);
274 elfw2(LIBELFBITS,getshdr) (scn)
275 Elf_Scn *scn;
279 if (!scn_valid (scn))
282 rwlock_rdlock (scn->elf->lock);
283 result = __elfw2(LIBELFBITS,getshdr_rdlock) (scn);
284 rwlock_unlock (scn->elf->lock);