Lines Matching refs:header
36 * the kernel mach header _mh_execute_header, which is the
37 * header for the currently executing kernel.
56 kernel_mach_header_t *header = &_mh_execute_header;
60 ((uintptr_t)header + sizeof(kernel_mach_header_t));
61 for (i = 0; i < header->ncmds; i++){
115 * named segment if it exist in the mach header passed to it. Also it returns
119 * This routine can operate against any kernel mach header.
143 * if it exist in the mach header passed to it. Also it returns
171 * This routine can operate against any kernel mach header.
207 * This routine can operate against any kernel mach header.
211 kernel_mach_header_t *header,
218 ((uintptr_t)header + sizeof(kernel_mach_header_t));
219 for (i = 0; i < header->ncmds; i++){
229 * Return the first segment_command in the header.
238 firstsegfromheader(kernel_mach_header_t *header)
242 ((uintptr_t)header + sizeof(*header));
244 for (i = 0; i < header->ncmds; i++){
254 * pointer and the provided kernel header, to obtain the sequentially next
255 * segment_command structure in that header.
259 kernel_mach_header_t *header,
264 ((uintptr_t)header + sizeof(*header));
267 for (i = 0; sgp != seg && i < header->ncmds; i++) {
276 for (; i < header->ncmds; i++) {