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