Lines Matching refs:lencopied

215 	size_t *lencopied = data->thread_ptr;  in copyinstr_from_kernel()  local
216 return copyinstr((user_addr_t)data->kern_addr, in_buf, copyio_test_buf_size, lencopied); in copyinstr_from_kernel()
227 size_t lencopied; in copyinstr_test() local
228 int err = copyinstr(data->user_addr, in_buf, copyio_test_buf_size, &lencopied); in copyinstr_test()
230 …T_EXPECT_EQ_ULONG(lencopied, strlen(copyio_test_string) + 1, "copyinstr() with a large enough buff… in copyinstr_test()
232 int cmp = strncmp(in_buf, copyio_test_string, lencopied); in copyinstr_test()
239 err = copyinstr(data->user_addr, in_buf, trunc_size, &lencopied); in copyinstr_test()
241 …T_EXPECT_EQ_ULONG(lencopied, trunc_size, "truncated copyinstr() should copy exactly `maxlen' bytes… in copyinstr_test()
247 err = copyinstr(data->unmapped_addr, in_buf, copyio_test_buf_size, &lencopied); in copyinstr_test()
249 err = copyinstr(data->user_lastpage_addr, in_buf, PAGE_SIZE * 2, &lencopied); in copyinstr_test()
253 data->thread_ptr = &lencopied; in copyinstr_test()
260 …T_EXPECT_EQ_ULONG(lencopied, strlen(copyio_test_string) + 1, "copyinstr() from kernel address shou… in copyinstr_test()
261 cmp = strncmp(in_buf, copyio_test_string, lencopied); in copyinstr_test()
270 err = copyinstr(data->user_addr, in_buf, copyio_test_buf_size, &lencopied); in copyinstr_test()
280 err = copyinstr(user_unterminated_addr, in_buf, copyio_test_buf_size, &lencopied); in copyinstr_test()
287 size_t *lencopied = data->thread_ptr; in copyoutstr_to_kernel() local
288 …opyoutstr(copyio_test_string, (user_addr_t)data->kern_addr, sizeof(copyio_test_string), lencopied); in copyoutstr_to_kernel()
296 size_t lencopied; in copyoutstr_test() local
297 int err = copyoutstr(copyio_test_string, data->user_addr, sizeof(copyio_test_string), &lencopied); in copyoutstr_test()
299 …T_EXPECT_EQ_ULONG(lencopied, strlen(copyio_test_string) + 1, "copyoutstr() should copy string up t… in copyoutstr_test()
309 err = copyoutstr(copyio_test_string, data->user_addr, trunc_size, &lencopied); in copyoutstr_test()
311 …T_EXPECT_EQ_ULONG(lencopied, trunc_size, "truncated copyoutstr() should copy exactly `maxlen' byte… in copyoutstr_test()
317 err = copyoutstr(copyio_test_string, data->unmapped_addr, strlen(copyio_test_string), &lencopied); in copyoutstr_test()
319 … = copyoutstr(copyio_test_string, data->unmapped_addr - 1, strlen(copyio_test_string), &lencopied); in copyoutstr_test()
321 …yio_test_string, data->user_lastpage_addr + PAGE_SIZE - 1, strlen(copyio_test_string), &lencopied); in copyoutstr_test()
325 data->thread_ptr = &lencopied; in copyoutstr_test()
332 …T_EXPECT_EQ_ULONG(lencopied, strlen(copyio_test_string) + 1, "copyoutstr() to kernel address shoul… in copyoutstr_test()
340 err = copyoutstr(copyio_test_string, data->user_addr, strlen(copyio_test_string), &lencopied); in copyoutstr_test()