Searched refs:mh (Results 1 - 12 of 12) sorted by relevance

/darwin-on-arm/xnu/osfmk/kdp/ml/arm/
H A Dkdp_arm_common.c186 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 Dkern_core.c245 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 Dkdp_x86_common.c554 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 Dmodel_dep.c164 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 Dmld6.c1944 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 Dipsec.c3852 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 Dip6_output.c3582 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 Dfbt_x86.c937 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 Dsdt.c523 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 Dmodel_dep.c927 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 Dkey.c8282 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 DOSKext.cpp4609 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);

Completed in 149 milliseconds