Home
last modified time | relevance | path

Searched refs:mapped (Results 1 – 25 of 29) sorted by relevance

12

/xnu-11215/tests/
H A Dcorrect_kernel_booted.c20 void *mapped = MAP_FAILED; in get_macho_uuid() local
46 mapped = mmap(NULL, (size_t)stbuf.st_size, PROT_READ, MAP_PRIVATE, in get_macho_uuid()
49 T_ASSERT_NE(mapped, MAP_FAILED, "should map Mach-O binary at %s%s", in get_macho_uuid()
54 uint32_t magic = *(uint32_t *)mapped; in get_macho_uuid()
76 const struct mach_header *hdr = mapped; in get_macho_uuid()
78 lcmd = (const void *)((const char *)mapped + sizeof(*hdr)); in get_macho_uuid()
80 const struct mach_header_64 *hdr = mapped; in get_macho_uuid()
82 lcmd = (const void *)((const char *)mapped + sizeof(*hdr)); in get_macho_uuid()
107 if (mapped != MAP_FAILED) { in get_macho_uuid()
108 munmap(mapped, mapped_len); in get_macho_uuid()
H A Diopolicy.c52 void *mapped; variable
118 mapped = mmap(NULL, sizeof(g_testdata), PROT_READ | PROT_WRITE, MAP_SHARED,
/xnu-11215/tests/vfs/
H A Do_search.c45 void *mapped = MAP_FAILED; variable
107 mapped = mmap(NULL, PAGE_SIZE, PROT_READ, MAP_SHARED,
109 T_ASSERT_TRUE((mapped == MAP_FAILED) && (errno == EACCES),
111 g_testfile, (long)mapped, errno);
113 mapped = mmap(NULL, PAGE_SIZE, PROT_WRITE, MAP_SHARED,
115 T_ASSERT_TRUE((mapped == MAP_FAILED) && (errno == EACCES),
117 g_testfile, (long)mapped, errno);
/xnu-11215/tests/vm/
H A Dtest_vm_no_pager_helper.c208 char* mapped = mmap(0, 1024, PROT_WRITE, MAP_SHARED, test_file_fd, 0);; in read_and_cause_unmount_crash() local
209 if (mapped == MAP_FAILED) { in read_and_cause_unmount_crash()
218 mapped[0] = 'A'; // cause page fault and crash in read_and_cause_unmount_crash()
234 char* mapped = mmap(0, 1024, PROT_WRITE, MAP_SHARED, test_file_fd, 0);; in read_and_cause_ungraft_crash() local
235 if (mapped == MAP_FAILED) { in read_and_cause_ungraft_crash()
248 mapped[0] = 'A'; // cause page fault and crash in read_and_cause_ungraft_crash()
/xnu-11215/bsd/net/
H A Dnetsrc.c161 struct sockaddr_in6 mapped = { in lookup_policy() local
163 .sin6_len = sizeof(mapped), in lookup_policy()
166 mapped.sin6_addr.s6_addr32[3] = addr->sin.sin_addr.s_addr; in lookup_policy()
167 return in6_addrsel_lookup_policy(&mapped); in lookup_policy()
/xnu-11215/SETUP/kextsymboltool/
H A Dkextsymboltool.c515 vm_offset_t mapped; in main() member
568 err = readFile(argv[i + 1], &files[num_files].mapped, &files[num_files].mapped_size); in main()
573 if (files[num_files].mapped && files[num_files].mapped_size) { in main()
588 files[filenum].nsyms = count_symbols((char *) files[filenum].mapped, files[filenum].mapped_size); in main()
604 store_symbols((char *) files[filenum].mapped, files[filenum].mapped_size, in main()
608 store_symbols((char *) files[filenum].mapped, files[filenum].mapped_size, in main()
954 munmap((caddr_t)files[filenum].mapped, files[filenum].mapped_size); in main()
955 files[filenum].mapped = 0; in main()
/xnu-11215/iokit/Kernel/
H A DIOMultiMemoryDescriptor.cpp305 ref.mapped = 0; in doMap()
307 ref.mapped = mapping->fAddress; in doMap()
320 address = ref.mapped; in doMap()
H A DIOBufferMemoryDescriptor.cpp190 bool mapped = false; in initWithPhysicalMask() local
238 mapped = (NULL != IOMapper::gSystem); in initWithPhysicalMask()
277 if (highestMask && mapped) { in initWithPhysicalMask()
307 contig |= (!mapped); in initWithPhysicalMask()
315 mappedOrShared = (mapped || (0 != (kIOMemorySharingTypeMask & options))); in initWithPhysicalMask()
H A DIODeviceTreeSupport.cpp800 OSArray * mapped; in IODTMapInterruptsSharing() local
825 mapped = OSArray::withCapacity( 1 ); in IODTMapInterruptsSharing()
828 ok = (mapped && controllers); in IODTMapInterruptsSharing()
836 regEntry->getName(), mapped->getCount()); in IODTMapInterruptsSharing()
842 map = OSData::withData( local, mapped->getCount() * sizeof(UInt32), in IODTMapInterruptsSharing()
850 mapped->setObject( map ); in IODTMapInterruptsSharing()
893 ok &= regEntry->setProperty( gIOInterruptSpecifiersKey, mapped); in IODTMapInterruptsSharing()
899 if (mapped) { in IODTMapInterruptsSharing()
900 mapped->release(); in IODTMapInterruptsSharing()
H A DIOKitKernelInternal.h55 mach_vm_address_t mapped; member
H A DIOMemoryDescriptor.cpp857 addr = ref->mapped; in IOMemoryDescriptorMapAlloc()
1041 ref.mapped = 0; in memoryReferenceMap()
1043 ref.mapped = addr; in memoryReferenceMap()
1051 addr = ref.mapped; in memoryReferenceMap()
1349 ref.mapped = 0; in memoryReferenceMapNew()
1351 ref.mapped = addr; in memoryReferenceMapNew()
3153 if (mapped) { in dmaCommandOperation()
3161 mapped = 0; in dmaCommandOperation()
3197 if (true && mapped) { in dmaCommandOperation()
3229 if (true && mapped) { in dmaCommandOperation()
[all …]
/xnu-11215/tools/lldbmacros/
H A Dpci.py17 using default base address for memory mapped PCI config space")
23 using default base address for memory mapped PCI config space")
H A Dmemory.py2102 mapped = '-'
2108 mapped = '1'
2110 mapped = '0'
2111 …(vnode, usecount, kusecount, iocount, v_data_ptr, vtype_str, parent_ptr, mapped, csblob_version, n…
3636 tagmapped[tag] = unsigned(site.mapped)
/xnu-11215/osfmk/arm64/
H A Dhibernate_restore.c234 size_t mapped = num_entries * level_size; in create_map_entries() local
235 size -= mapped; in create_map_entries()
240 vaddr += mapped; in create_map_entries()
/xnu-11215/osfmk/mach_debug/
H A Dzone_info.h159 uint64_t mapped; member
/xnu-11215/osfmk/mach/
H A Dvm_types.h277 uint64_t mapped; member
H A Dvm_map.defs202 * List corrollary to vm_read, returns mapped contents of specified
357 * correspond to mapped portions of their address space. These named
359 * other address spaces and ultimately mapped in ohter address spaces
372 * address space. If a page is mapped return ref and dirty info.
H A Dmach_vm.defs227 * List corrollary to vm_read, returns mapped contents of specified
408 * address space. If a page is mapped return ref and dirty info.
458 * correspond to mapped portions of their address space. These named
460 * other address spaces and ultimately mapped in ohter address spaces
H A Dmach_host.defs120 * Allow pagers to create named entries that point to un-mapped
/xnu-11215/iokit/DriverKit/
H A DIOExtensiblePaniclog.iig135 * @param addr Address of the mapped buffer
136 * @param len The length of the mapped buffer. This is same value as the max_len in
H A DIOUserClient.iig232 * @brief Return an IOMemoryDescriptor to be mapped into the client task.
237 …* @param options Set kIOUserClientMemoryReadOnly for memory to be mapped read only in the cl…
/xnu-11215/doc/lifecycle/
H A Dhibernation.md21 * WKdm : Wilson-Kaplan direct mapped compression
175 was mapped by the booter is safe to call, since all the other wired pages are
182 are readable/writable as necessary, and all of the rest of memory is mapped
184 have to be mapped to support serial logging and using the hmac block.
/xnu-11215/iokit/Tests/
H A DTestIOMemoryDescriptor.cpp910 uint64_t mapped; in IOMemoryDescriptorTest()
915 ret = md1->dmaMap(mapper, NULL, &mapSpec, 0, bufSize, &mapped, &mappedLength); in IOMemoryDescriptorTest()
922 kprintf("seg0 0x%qx, 0x%qx\n", mapped, mappedLength); in IOMemoryDescriptorTest()
/xnu-11215/osfmk/vm/
H A Dvm_resident.c9786 OSAddAtomic64(delta, &other->mapped); in kern_allocation_update_subtotal()
9885 info[idx].mapped = site->mapped; in process_account()
9953 info[nextinfo].mapped = 0; in process_account()
9959 uint64_t mapped, mapcost, take; in process_account() local
9964 mapped = info[idx].size; in process_account()
9965 info[idx].mapped = mapped; in process_account()
9977 if (take > mapped) { in process_account()
9978 take = mapped; in process_account()
9980 info[alloctag].mapped -= take; in process_account()
9982 mapped -= take; in process_account()
[all …]
/xnu-11215/doc/vm/
H A Dfreezer.md28mapped into the same process in multiple places though, so we do a quick forward scan in the map a…

12