Home
last modified time | relevance | path

Searched refs:map_tmp_sz (Results 1 – 1 of 1) sorted by relevance

/xnu-11215.1.10/tests/
H A Dproc_info.c611 vm_map_size_t map_tmp_sz = 0; in proc_info_caller() local
627 map_tmp_sz = (vm_map_size_t)npages_to_write * (vm_map_size_t)PAGE_SIZE; in proc_info_caller()
635 char *buf = valloc((size_t)map_tmp_sz); in proc_info_caller()
637 T_ASSERT_NOTNULL(buf, "valloc(%d) failed", (int)map_tmp_sz); in proc_info_caller()
639 memset(buf, 0x5, map_tmp_sz); in proc_info_caller()
640 ssize_t bw = write(tmp_fd, buf, (size_t)map_tmp_sz); in proc_info_caller()
642 T_ASSERT_GT_INT((int)bw, 0, "write(%d, buf, %d) failed", tmp_fd, (int)map_tmp_sz); in proc_info_caller()
646 map_tmp_sz -= PAGE_SIZE; in proc_info_caller()
647 map_tmp = mmap(0, (size_t)map_tmp_sz, PROT_WRITE, MAP_PRIVATE, tmp_fd, (off_t)PAGE_SIZE); in proc_info_caller()
670 ret_structs[i] = (void *)(uintptr_t)map_tmp_sz; in proc_info_caller()
[all …]