Home
last modified time | relevance | path

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

/xnu-8019.80.24/bsd/tests/
H A Dcopyio_tests.c47 #define copyio_test_buf_size (PAGE_SIZE * 16) macro
111 …kern_return_t ret = mach_vm_protect(data->user_map, data->user_addr, copyio_test_buf_size, false, … in copyio_test_protect()
119 return copyin((uintptr_t)data->kern_addr, in_buf, copyio_test_buf_size); in copyin_from_kernel()
128 for (size_t i = 0; i < copyio_test_buf_size; i++) { in copyin_test()
131 memcpy(data->kern_addr, out_buf, copyio_test_buf_size); in copyin_test()
133 int err = copyin(data->user_addr, in_buf, copyio_test_buf_size); in copyin_test()
135 int cmp = memcmp(out_buf, in_buf, copyio_test_buf_size); in copyin_test()
141 err = copyin(data->unmapped_addr, in_buf, copyio_test_buf_size); in copyin_test()
148 bzero(in_buf, copyio_test_buf_size); in copyin_test()
151 cmp = memcmp(data->kern_addr, in_buf, copyio_test_buf_size); in copyin_test()
[all …]