Lines Matching refs:section
179 kernel_section_t * section; in OSRuntimeCallStructorsInSection() local
182 for (section = firstsect(segment); in OSRuntimeCallStructorsInSection()
183 section != NULL; in OSRuntimeCallStructorsInSection()
184 section = nextsect(segment, section)) { in OSRuntimeCallStructorsInSection()
185 if (strncmp(section->sectname, sectionName, sizeof(section->sectname) - 1)) { in OSRuntimeCallStructorsInSection()
188 if (section->size == 0) { in OSRuntimeCallStructorsInSection()
192 structor_t * structors = (structor_t *)section->addr; in OSRuntimeCallStructorsInSection()
199 unsigned long num_structors = section->size / sizeof(structor_t); in OSRuntimeCallStructorsInSection()
250 kmodInfo->name, section->segname); in OSRuntimeCallStructorsInSection()
350 __attribute__((noinline, section("__KLD,__text")))
355 kernel_section_t * section; in OSRuntimeSignStructorsInSegment() local
360 for (section = firstsect(segment); in OSRuntimeSignStructorsInSegment()
361 section != NULL; in OSRuntimeSignStructorsInSegment()
362 section = nextsect(segment, section)) { in OSRuntimeSignStructorsInSegment()
363 if ((S_MOD_INIT_FUNC_POINTERS != (SECTION_TYPE & section->flags)) in OSRuntimeSignStructorsInSegment()
364 && (S_MOD_TERM_FUNC_POINTERS != (SECTION_TYPE & section->flags))) { in OSRuntimeSignStructorsInSegment()
367 structors = (structor_t *)section->addr; in OSRuntimeSignStructorsInSegment()
371 num_structors = section->size / sizeof(structor_t); in OSRuntimeSignStructorsInSegment()