Lines Matching refs:lencopied
214 size_t *lencopied = data->thread_ptr; in copyinstr_from_kernel() local
215 return copyinstr((user_addr_t)data->kern_addr, in_buf, copyio_test_buf_size, lencopied); in copyinstr_from_kernel()
226 size_t lencopied; in copyinstr_test() local
227 int err = copyinstr(data->user_addr, in_buf, copyio_test_buf_size, &lencopied); in copyinstr_test()
229 …T_EXPECT_EQ_ULONG(lencopied, strlen(copyio_test_string) + 1, "copyinstr() with a large enough buff… in copyinstr_test()
231 int cmp = strncmp(in_buf, copyio_test_string, lencopied); in copyinstr_test()
238 err = copyinstr(data->user_addr, in_buf, trunc_size, &lencopied); in copyinstr_test()
240 …T_EXPECT_EQ_ULONG(lencopied, trunc_size, "truncated copyinstr() should copy exactly `maxlen' bytes… in copyinstr_test()
246 err = copyinstr(data->unmapped_addr, in_buf, copyio_test_buf_size, &lencopied); in copyinstr_test()
248 err = copyinstr(data->user_lastpage_addr, in_buf, PAGE_SIZE * 2, &lencopied); in copyinstr_test()
252 data->thread_ptr = &lencopied; in copyinstr_test()
259 …T_EXPECT_EQ_ULONG(lencopied, strlen(copyio_test_string) + 1, "copyinstr() from kernel address shou… in copyinstr_test()
260 cmp = strncmp(in_buf, copyio_test_string, lencopied); in copyinstr_test()
269 err = copyinstr(data->user_addr, in_buf, copyio_test_buf_size, &lencopied); in copyinstr_test()
279 err = copyinstr(user_unterminated_addr, in_buf, copyio_test_buf_size, &lencopied); in copyinstr_test()
286 size_t *lencopied = data->thread_ptr; in copyoutstr_to_kernel() local
287 …opyoutstr(copyio_test_string, (user_addr_t)data->kern_addr, sizeof(copyio_test_string), lencopied); in copyoutstr_to_kernel()
295 size_t lencopied; in copyoutstr_test() local
296 int err = copyoutstr(copyio_test_string, data->user_addr, sizeof(copyio_test_string), &lencopied); in copyoutstr_test()
298 …T_EXPECT_EQ_ULONG(lencopied, strlen(copyio_test_string) + 1, "copyoutstr() should copy string up t… in copyoutstr_test()
308 err = copyoutstr(copyio_test_string, data->user_addr, trunc_size, &lencopied); in copyoutstr_test()
310 …T_EXPECT_EQ_ULONG(lencopied, trunc_size, "truncated copyoutstr() should copy exactly `maxlen' byte… in copyoutstr_test()
316 err = copyoutstr(copyio_test_string, data->unmapped_addr, strlen(copyio_test_string), &lencopied); in copyoutstr_test()
318 … = copyoutstr(copyio_test_string, data->unmapped_addr - 1, strlen(copyio_test_string), &lencopied); in copyoutstr_test()
320 …yio_test_string, data->user_lastpage_addr + PAGE_SIZE - 1, strlen(copyio_test_string), &lencopied); in copyoutstr_test()
324 data->thread_ptr = &lencopied; in copyoutstr_test()
331 …T_EXPECT_EQ_ULONG(lencopied, strlen(copyio_test_string) + 1, "copyoutstr() to kernel address shoul… in copyoutstr_test()
339 err = copyoutstr(copyio_test_string, data->user_addr, strlen(copyio_test_string), &lencopied); in copyoutstr_test()