Home
last modified time | relevance | path

Searched refs:lencopied (Results 1 – 5 of 5) sorted by relevance

/xnu-11215.81.4/bsd/dev/i386/
H A Dstubs.c60 copyoutstr(const void *from, user_addr_t to, size_t maxlen, size_t *lencopied) in copyoutstr() argument
75 *lencopied = len; in copyoutstr()
93 copystr(const void *vfrom, void *vto, size_t maxlen, size_t *lencopied) in copystr() argument
101 if (lencopied) { in copystr()
102 *lencopied = l + 1; in copystr()
107 if (lencopied) { in copystr()
108 *lencopied = maxlen; in copystr()
/xnu-11215.81.4/bsd/dev/arm/
H A Dstubs.c36 copyoutstr(const void *from, user_addr_t to, size_t maxlen, size_t * lencopied) in copyoutstr() argument
55 *lencopied = len; in copyoutstr()
70 copystr(const void *vfrom, void *vto, size_t maxlen, size_t * lencopied) in copystr() argument
78 if (lencopied) { in copystr()
79 *lencopied = l + 1; in copystr()
84 if (lencopied) { in copystr()
85 *lencopied = maxlen; in copystr()
/xnu-11215.81.4/bsd/tests/
H A Dcopyio_tests.c214 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()
[all …]
/xnu-11215.81.4/osfmk/x86_64/
H A Dcopyio.c169 vm_size_t nbytes, vm_size_t *lencopied, int use_kernel_map) in copyio() argument
268 copy_type, (void *)user_addr, kernel_addr, nbytes, lencopied, use_kernel_map, in copyio()
336 *lencopied = bytes_copied; in copyio()
341 nbytes = *lencopied; in copyio()
350 nbytes = *lencopied; in copyio()
359 nbytes = *lencopied; in copyio()
486 copyinstr(const user_addr_t user_addr, char *kernel_addr, vm_size_t nbytes, vm_size_t *lencopied) in copyinstr() argument
488 *lencopied = 0; in copyinstr()
490 return copyio(COPYINSTR, user_addr, kernel_addr, nbytes, lencopied, 0); in copyinstr()
/xnu-11215.81.4/osfmk/arm64/
H A Dcopyio.c413 copyinstr(const user_addr_t user_addr, char *kernel_addr, vm_size_t nbytes, vm_size_t *lencopied) in copyinstr() argument
420 *lencopied = 0; in copyinstr()
436 *lencopied = bytes_copied; in copyinstr()