Searched refs:copyin_fn (Results 1 – 1 of 1) sorted by relevance
| /xnu-8019.80.24/bsd/tests/ |
| H A D | copyio_tests.c | 374 #define copyin_atomic_test(data, word_t, copyin_fn, copyin_from_kernel_fn) … argument 380 …int err = copyin_fn(data->user_addr, &word_in); … 381 …T_EXPECT_EQ_INT(err, 0, #copyin_fn "() with valid parameters should succeed"); … 384 …T_EXPECT_EQ_INT(cmp, 0, #copyin_fn "() should correctly copy word"); … 387 … err = copyin_fn(data->user_addr + offset, &word_in); \ 389 … #copyin_fn "() from unaligned userspace address should return EINVAL (offset = %u)", \ 392 …err = copyin_fn(data->unmapped_addr, &word_in); … 393 …T_EXPECT_EQ_INT(err, EFAULT, #copyin_fn "() from unmapped userspace address should return EFAULT")… 399 …#copyin_fn "() from kernel address in kernel_task threads should return EFAULT"); … 402 …#copyin_fn "() from kernel address in other threads should return EFAULT"); … [all …]
|