Searched refs:copyout_fn (Results 1 – 1 of 1) sorted by relevance
| /xnu-8020.101.4/bsd/tests/ |
| H A D | copyio_tests.c | 410 #define copyout_atomic_test(data, word_t, copyout_fn, copyout_to_kernel_fn) … argument 415 …int err = copyout_fn(word_out, data->user_addr); … 416 …T_EXPECT_EQ_INT(err, 0, #copyout_fn "() with valid parameters should succeed"); … 419 …T_EXPECT_EQ_INT(cmp, 0, #copyout_fn "() should correctly copy word"); … 422 … err = copyout_fn(word_out, data->user_addr + offset); \ 424 … #copyout_fn "() to unaligned userspace address should return EINVAL (offset = %u)", \ 427 …err = copyout_fn(word_out, data->unmapped_addr); … 428 …T_EXPECT_EQ_INT(err, EFAULT, #copyout_fn "() to unmapped userspace address should return EFAULT");… 429 …err = copyout_fn(word_out, (uintptr_t)data->kern_addr); … 430 …T_EXPECT_EQ_INT(err, EFAULT, #copyout_fn "() to kernel address should return EFAULT"); … [all …]
|