Lines Matching refs:scn
41 elf_newdata (Elf_Scn *scn) in elf_newdata() argument
45 if (scn == NULL) in elf_newdata()
48 if (unlikely (scn->index == 0)) in elf_newdata()
55 if (scn->elf->class == ELFCLASS32 in elf_newdata()
58 ? scn->elf->state.elf32.ehdr == NULL in elf_newdata()
59 : scn->elf->state.elf64.ehdr == NULL) in elf_newdata()
65 rwlock_wrlock (scn->elf->lock); in elf_newdata()
67 if (scn->data_read && scn->data_list_rear == NULL) in elf_newdata()
71 result = &scn->data_list; in elf_newdata()
86 if (scn->data_list_rear == NULL) in elf_newdata()
89 scn->data_list_rear = &scn->data_list; in elf_newdata()
95 result->data.s = scn; in elf_newdata()
98 if (scn->data_list_rear != NULL) in elf_newdata()
99 scn->data_list_rear->next = result; in elf_newdata()
101 scn->data_list_rear = result; in elf_newdata()
104 rwlock_unlock (scn->elf->lock); in elf_newdata()