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