Lines Matching refs:mappings
44 * the same mappings in their VM map. All they need is contained in the shared
748 * Establish some mappings of a file in the shared region.
754 * It will return KERN_SUCCESS if the mappings were successfully established
761 struct shared_file_mapping_np *mappings,
821 shared_region, mappings_count, mappings,
827 /* establish the mappings */
834 (long long)mappings[i].sfm_address,
835 (long long)mappings[i].sfm_size,
836 (long long)mappings[i].sfm_file_offset,
837 mappings[i].sfm_max_prot,
838 mappings[i].sfm_init_prot));
840 if (mappings[i].sfm_init_prot & VM_PROT_ZF) {
850 mappings[i].sfm_address - sr_base_address;
860 obj_size = vm_map_round_page(mappings[i].sfm_size);
868 vm_map_round_page(mappings[i].sfm_size),
874 mappings[i].sfm_init_prot & VM_PROT_ALL,
875 mappings[i].sfm_max_prot & VM_PROT_ALL,
883 vm_map_round_page(mappings[i].sfm_size),
887 mappings[i].sfm_file_offset,
889 mappings[i].sfm_init_prot & VM_PROT_ALL,
890 mappings[i].sfm_max_prot & VM_PROT_ALL,
915 (long long)mappings[i].sfm_address,
916 (long long)mappings[i].sfm_size,
917 (long long)mappings[i].sfm_file_offset,
918 mappings[i].sfm_max_prot,
919 mappings[i].sfm_init_prot));
925 mappings[i].sfm_size = 0;
937 (long long)mappings[i].sfm_address,
938 (long long)mappings[i].sfm_size,
939 (long long)mappings[i].sfm_file_offset,
940 mappings[i].sfm_max_prot,
941 mappings[i].sfm_init_prot,
945 * Undo the mappings we've established so far.
950 if (mappings[j].sfm_size == 0) {
965 (long long)mappings[j].sfm_address,
966 (long long)mappings[j].sfm_size,
967 (long long)mappings[j].sfm_file_offset,
968 mappings[j].sfm_max_prot,
969 mappings[j].sfm_init_prot));
972 (mappings[j].sfm_address -
974 mappings[j].sfm_size);
1005 shared_region, mappings_count, mappings,