Home
last modified time | relevance | path

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

/xnu-12377.61.12/bsd/tests/
H A Dcopyio_tests.c51 #define copyio_test_buf_size (PAGE_SIZE * 16) macro
115 …n_return_t ret = mach_vm_protect(data->user_map, data->user_addr, copyio_test_buf_size, false, pro… in copyio_test_protect()
123 return copyin((uintptr_t)data->kern_addr, in_buf, copyio_test_buf_size); in copyin_from_kernel()
132 for (size_t i = 0; i < copyio_test_buf_size; i++) { in copyin_test()
135 memcpy(data->kern_addr, out_buf, copyio_test_buf_size); in copyin_test()
137 int err = copyin(data->user_addr, in_buf, copyio_test_buf_size); in copyin_test()
139 int cmp = memcmp(out_buf, in_buf, copyio_test_buf_size); in copyin_test()
145 err = copyin(data->unmapped_addr, in_buf, copyio_test_buf_size); in copyin_test()
152 bzero(in_buf, copyio_test_buf_size); in copyin_test()
155 cmp = memcmp(data->kern_addr, in_buf, copyio_test_buf_size); in copyin_test()
[all …]