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