/darwin-on-arm/xnu/osfmk/kdp/ml/arm/ |
H A D | kdp_arm_common.c | 186 kernel_mach_header_t mh; local 219 mh.magic = _mh_execute_header.magic; 220 mh.cputype = _mh_execute_header.cputype;; 221 mh.cpusubtype = _mh_execute_header.cpusubtype; 222 mh.filetype = MH_CORE; 223 mh.ncmds = segment_count + 1 /* thread */; 224 mh.sizeofcmds = (uint32_t)command_size; 225 mh.flags = 0; 228 mh.reserved = 0; 242 if ((ret = kdp_send_crashdump_data (KDP_DATA, NULL, sizeof(kernel_mach_header_t), (caddr_t) &mh) < [all...] |
/darwin-on-arm/xnu/bsd/kern/ |
H A D | kern_core.c | 245 struct mach_header *mh = NULL; /* protected by is_64 */ local 342 mh = (struct mach_header *)header; 343 mh->magic = MH_MAGIC; 344 mh->cputype = process_cpu_type(core_proc); 345 mh->cpusubtype = process_cpu_subtype(core_proc); 346 mh->filetype = MH_CORE; 347 mh->ncmds = segment_count + thread_count; 348 mh->sizeofcmds = command_size; 470 mh->ncmds -= segment_count; 471 mh [all...] |
/darwin-on-arm/xnu/osfmk/kdp/ml/i386/ |
H A D | kdp_x86_common.c | 554 kernel_mach_header_t mh; local 587 mh.magic = _mh_execute_header.magic; 588 mh.cputype = _mh_execute_header.cputype;; 589 mh.cpusubtype = _mh_execute_header.cpusubtype; 590 mh.filetype = MH_CORE; 591 mh.ncmds = segment_count + 1 /* thread */; 592 mh.sizeofcmds = (uint32_t)command_size; 593 mh.flags = 0; 595 mh.reserved = 0; 609 if ((ret = kdp_send_crashdump_data (KDP_DATA, NULL, sizeof(kernel_mach_header_t), (caddr_t) &mh) < [all...] |
/darwin-on-arm/xnu/osfmk/arm/ |
H A D | model_dep.c | 164 panic_print_macho_symbol_name(kernel_mach_header_t *mh, vm_address_t search, const char *module_name) argument 176 cmd = (struct load_command *) &mh[1]; 177 for (i = 0; i < mh->ncmds; i++) {
|
/darwin-on-arm/xnu/bsd/netinet6/ |
H A D | mld6.c | 1944 struct mbuf *mh, *md; local 1955 MGETHDR(mh, M_DONTWAIT, MT_HEADER); 1956 if (mh == NULL) { 1963 m_free(mh); 1968 mh->m_next = md; 1975 MH_ALIGN(mh, sizeof(struct ip6_hdr)); 1976 mh->m_pkthdr.len = sizeof(struct ip6_hdr) + sizeof(struct mld_hdr); 1977 mh->m_len = sizeof(struct ip6_hdr); 1979 ip6 = mtod(mh, struct ip6_hdr *); 2003 mld->mld_cksum = in6_cksum(mh, IPPROTO_ICMPV 3351 struct mbuf *mh; local [all...] |
H A D | ipsec.c | 3852 struct mbuf *mh; local 3865 MGETHDR(mh, M_DONTWAIT, MT_HEADER); /* MAC-OK */ 3866 if (!mh) { 3870 M_COPY_PKTHDR(mh, m); 3871 MH_ALIGN(mh, hlen); 3876 mh->m_next = m; 3877 m = mh; 3894 struct mbuf *mh; local 3903 MGETHDR(mh, M_DONTWAIT, MT_HEADER); /* MAC-OK */ 3904 if (!mh) { [all...] |
H A D | ip6_output.c | 3582 struct mbuf *mh; local 3587 MGETHDR(mh, M_DONTWAIT, MT_HEADER); /* MAC-OK */ 3588 if (mh == 0) { 3592 M_COPY_PKTHDR(mh, m); 3593 MH_ALIGN(mh, sizeof(*ip6)); 3597 mh->m_next = m; 3598 m = mh;
|
/darwin-on-arm/xnu/bsd/dev/i386/ |
H A D | fbt_x86.c | 937 kernel_mach_header_t *mh; local 947 mh = (kernel_mach_header_t *)(ctl->mod_address); 950 if (mh->magic != MH_MAGIC) 953 cmd = (struct load_command *) &mh[1]; 954 for (i = 0; i < mh->ncmds; i++) { 1455 kernel_mach_header_t *mh; local 1465 mh = (kernel_mach_header_t *)(ctl->mod_address); 1468 if (mh->magic != MH_MAGIC_64) 1471 cmd = (struct load_command *) &mh[1]; 1472 for (i = 0; i < mh [all...] |
/darwin-on-arm/xnu/bsd/dev/dtrace/ |
H A D | sdt.c | 523 kernel_mach_header_t *mh; local 546 mh = &_mh_execute_header; 547 cmd = (struct load_command*) &mh[1]; 548 for (i = 0; i < mh->ncmds; i++) {
|
/darwin-on-arm/xnu/osfmk/i386/AT386/ |
H A D | model_dep.c | 927 panic_print_macho_symbol_name(kernel_mach_header_t *mh, vm_address_t search, const char *module_name) argument 939 cmd = (struct load_command *) &mh[1]; 940 for (i = 0; i < mh->ncmds; i++) {
|
/darwin-on-arm/xnu/bsd/netkey/ |
H A D | key.c | 8282 struct sadb_msghdr mh; local 8361 error = key_align(m, &mh); 8370 msg = mh.msg; 8431 if (mh.ext[SADB_EXT_ADDRESS_SRC] != NULL 8432 && mh.ext[SADB_EXT_ADDRESS_DST] != NULL) { 8436 src0 = (struct sadb_address *)(mh.ext[SADB_EXT_ADDRESS_SRC]); 8437 dst0 = (struct sadb_address *)(mh.ext[SADB_EXT_ADDRESS_DST]); 8524 return (*key_typesw[msg->sadb_msg_type])(so, m, &mh);
|
/darwin-on-arm/xnu/libkern/c++/ |
H A D | OSKext.cpp | 4609 kernel_mach_header_t * mh = NULL; local 4630 mh = (kernel_mach_header_t *)linkedExecutable->getBytesNoCopy(); 4632 for (seg = firstsegfromheader(mh); seg != NULL; seg = nextsegfromheader(mh, seg)) { 4663 dysymtab = (struct dysymtab_command *) getcommandfromheader(mh, LC_DYSYMTAB); 4665 symtab = (struct symtab_command *) getcommandfromheader(mh, LC_SYMTAB);
|