Searched refs:lencopied (Results 1 – 5 of 5) sorted by relevance
| /xnu-8019.80.24/bsd/dev/i386/ |
| H A D | stubs.c | 59 copyoutstr(const void *from, user_addr_t to, size_t maxlen, size_t *lencopied) in copyoutstr() argument 74 *lencopied = len; in copyoutstr() 92 copystr(const void *vfrom, void *vto, size_t maxlen, size_t *lencopied) in copystr() argument 100 if (lencopied) { in copystr() 101 *lencopied = l + 1; in copystr() 106 if (lencopied) { in copystr() 107 *lencopied = maxlen; in copystr()
|
| /xnu-8019.80.24/bsd/dev/arm/ |
| H A D | stubs.c | 35 copyoutstr(const void *from, user_addr_t to, size_t maxlen, size_t * lencopied) in copyoutstr() argument 54 *lencopied = len; in copyoutstr() 69 copystr(const void *vfrom, void *vto, size_t maxlen, size_t * lencopied) in copystr() argument 77 if (lencopied) { in copystr() 78 *lencopied = l + 1; in copystr() 83 if (lencopied) { in copystr() 84 *lencopied = maxlen; in copystr()
|
| /xnu-8019.80.24/bsd/tests/ |
| H A D | copyio_tests.c | 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() [all …]
|
| /xnu-8019.80.24/osfmk/x86_64/ |
| H A D | copyio.c | 169 vm_size_t nbytes, vm_size_t *lencopied, int use_kernel_map) in copyio() argument 280 copy_type, (void *)user_addr, kernel_addr, nbytes, lencopied, use_kernel_map, in copyio() 348 *lencopied = bytes_copied; in copyio() 353 nbytes = *lencopied; in copyio() 362 nbytes = *lencopied; in copyio() 371 nbytes = *lencopied; in copyio() 498 copyinstr(const user_addr_t user_addr, char *kernel_addr, vm_size_t nbytes, vm_size_t *lencopied) in copyinstr() argument 500 *lencopied = 0; in copyinstr() 502 return copyio(COPYINSTR, user_addr, kernel_addr, nbytes, lencopied, 0); in copyinstr()
|
| /xnu-8019.80.24/osfmk/arm64/ |
| H A D | copyio.c | 320 copyinstr(const user_addr_t user_addr, char *kernel_addr, vm_size_t nbytes, vm_size_t *lencopied) in copyinstr() argument 325 *lencopied = 0; in copyinstr() 339 *lencopied = bytes_copied; in copyinstr()
|