Home
last modified time | relevance | path

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

/xnu-11417.140.69/bsd/tests/
H A Dcopyio_tests.c48 #define copyio_test_buf_size (PAGE_SIZE * 16) macro
112 …n_return_t ret = mach_vm_protect(data->user_map, data->user_addr, copyio_test_buf_size, false, pro… in copyio_test_protect()
120 return copyin((uintptr_t)data->kern_addr, in_buf, copyio_test_buf_size); in copyin_from_kernel()
129 for (size_t i = 0; i < copyio_test_buf_size; i++) { in copyin_test()
132 memcpy(data->kern_addr, out_buf, copyio_test_buf_size); in copyin_test()
134 int err = copyin(data->user_addr, in_buf, copyio_test_buf_size); in copyin_test()
136 int cmp = memcmp(out_buf, in_buf, copyio_test_buf_size); in copyin_test()
142 err = copyin(data->unmapped_addr, in_buf, copyio_test_buf_size); in copyin_test()
149 bzero(in_buf, copyio_test_buf_size); in copyin_test()
152 cmp = memcmp(data->kern_addr, in_buf, copyio_test_buf_size); in copyin_test()
[all …]