Home
last modified time | relevance | path

Searched refs:k_usermode_to_copy (Results 1 – 23 of 23) sorted by relevance

/Zephyr-latest/drivers/hwinfo/
Dhwinfo_handlers.c32 K_OOPS(k_usermode_to_copy(cause, &cause_copy, sizeof(uint32_t))); in z_vrfy_hwinfo_get_reset_cause()
51 K_OOPS(k_usermode_to_copy(supported, &supported_copy, sizeof(uint32_t))); in z_vrfy_hwinfo_get_supported_reset_cause()
/Zephyr-latest/drivers/espi/
Despi_handlers.c43 K_OOPS(k_usermode_to_copy(data, &data_copy, sizeof(uint8_t))); in z_vrfy_espi_read_lpc_request()
82 K_OOPS(k_usermode_to_copy(level, &level_copy, sizeof(uint8_t))); in z_vrfy_espi_receive_vwire()
101 K_OOPS(k_usermode_to_copy(req, &req_copy, in z_vrfy_espi_read_request()
154 K_OOPS(k_usermode_to_copy(pckt, &pckt_copy, in z_vrfy_espi_receive_oob()
173 K_OOPS(k_usermode_to_copy(pckt, &pckt_copy, in z_vrfy_espi_read_flash()
/Zephyr-latest/drivers/pwm/
Dpwm_handlers.c67 K_OOPS(k_usermode_to_copy(period_cycles, &period, in z_vrfy_pwm_capture_cycles()
72 K_OOPS(k_usermode_to_copy(pulse_cycles, &pulse, in z_vrfy_pwm_capture_cycles()
/Zephyr-latest/drivers/ptp_clock/
Dptp_clock.c25 if (k_usermode_to_copy((void *)tm, &ptp_time, sizeof(ptp_time)) != 0) { in z_vrfy_ptp_clock_get()
/Zephyr-latest/samples/userspace/prod_consumer/src/
Dapp_syscall.c50 k_usermode_to_copy(cookie, &cookie_copy, sizeof(*cookie)) != 0) { in z_vrfy_magic_syscall()
/Zephyr-latest/subsys/net/lib/sockets/
Dsockets.c326 K_OOPS(ret >= 0 && addrlen && k_usermode_to_copy(addrlen, &addrlen_copy, in z_vrfy_zsock_accept()
518 K_OOPS(k_usermode_to_copy(addrlen, &addrlen_copy, in z_vrfy_zsock_recvfrom()
635 K_OOPS(k_usermode_to_copy(msg->msg_name, in z_vrfy_zsock_recvmsg()
642 K_OOPS(k_usermode_to_copy(msg->msg_control, in z_vrfy_zsock_recvmsg()
651 k_usermode_to_copy(&msg->msg_iovlen, in z_vrfy_zsock_recvmsg()
660 K_OOPS(k_usermode_to_copy(msg->msg_iov[i].iov_base, in z_vrfy_zsock_recvmsg()
663 K_OOPS(k_usermode_to_copy(&msg->msg_iov[i].iov_len, in z_vrfy_zsock_recvmsg()
672 k_usermode_to_copy(&msg->msg_flags, in z_vrfy_zsock_recvmsg()
840 K_OOPS(k_usermode_to_copy(dst, dst_copy, dst_size)); in z_vrfy_zsock_inet_pton()
881 K_OOPS(k_usermode_to_copy((void *)optval, kernel_optval, kernel_optlen)); in z_vrfy_zsock_getsockopt()
[all …]
Dsocketpair.c359 K_OOPS(k_usermode_to_copy(sv, tmp, sizeof(tmp))); in z_vrfy_zsock_socketpair()
/Zephyr-latest/drivers/i2s/
Di2s_handlers.c66 copy_success = k_usermode_to_copy((void *)buf, mem_block, in z_vrfy_i2s_buf_read()
71 K_OOPS(k_usermode_to_copy((void *)size, &data_size, in z_vrfy_i2s_buf_read()
/Zephyr-latest/drivers/fuel_gauge/
Dfuel_gauge_syscall_handlers.c22 K_OOPS(k_usermode_to_copy(val, &k_val, sizeof(union fuel_gauge_prop_val))); in z_vrfy_fuel_gauge_get_prop()
43 K_OOPS(k_usermode_to_copy(vals, k_vals, len * sizeof(union fuel_gauge_prop_val))); in z_vrfy_fuel_gauge_get_props()
/Zephyr-latest/drivers/charger/
Dcharger_handlers.c19 K_OOPS(k_usermode_to_copy(val, &k_val, sizeof(union charger_propval))); in z_vrfy_charger_get_prop()
/Zephyr-latest/lib/os/zvfs/
Dzvfs_select.c268 k_usermode_to_copy((void *)readfds, readfds_copy, in z_vrfy_zvfs_select()
273 k_usermode_to_copy((void *)writefds, writefds_copy, in z_vrfy_zvfs_select()
278 k_usermode_to_copy((void *)exceptfds, exceptfds_copy, in z_vrfy_zvfs_select()
Dzvfs_poll.c206 k_usermode_to_copy((void *)fds, fds_copy, fds_size); in z_vrfy_zvfs_poll()
/Zephyr-latest/drivers/flash/
Dflash_stm32_ex_op.c81 K_OOPS(k_usermode_to_copy(out, result, sizeof(out_copy))); in flash_stm32_ex_op_sector_wp()
220 K_OOPS(k_usermode_to_copy(out, result, sizeof(copy))); in flash_stm32_ex_op_rdp()
Dflash_npcx_fiu_nor.c465 K_OOPS(k_usermode_to_copy(out, op_out, sizeof(out_copy))); in flash_npcx_nor_ex_op()
498 K_OOPS(k_usermode_to_copy(out, op_out, sizeof(out_copy))); in flash_npcx_nor_ex_op()
/Zephyr-latest/drivers/can/
Dcan_handlers.c20 K_OOPS(k_usermode_to_copy(res, &res_copy, sizeof(*res))); in z_vrfy_can_calc_timing()
92 K_OOPS(k_usermode_to_copy(res, &res_copy, sizeof(*res))); in z_vrfy_can_calc_timing_data()
/Zephyr-latest/tests/kernel/mem_protect/syscalls/src/
Dmain.c62 K_OOPS(k_usermode_to_copy((int *)err, &err_copy, sizeof(err_copy))); in z_vrfy_string_nlen()
126 return k_usermode_to_copy((char *)dest, user_string, BUF_SIZE); in z_vrfy_to_copy()
/Zephyr-latest/include/zephyr/internal/
Dsyscall_handler.h299 int k_usermode_to_copy(void *dst, const void *src, size_t size);
/Zephyr-latest/subsys/net/ip/
Dutils.c326 K_OOPS(k_usermode_to_copy((void *)dst, str, MIN(size, sizeof(str)))); in z_vrfy_net_addr_ntop()
498 K_OOPS(k_usermode_to_copy((void *)dst, addr, size)); in z_vrfy_net_addr_pton()
/Zephyr-latest/kernel/
Dthread.c306 return k_usermode_to_copy((void *)buf, thread->name, len + 1); in z_vrfy_k_thread_name_copy()
886 ret = k_usermode_to_copy(unused_ptr, &unused, sizeof(size_t)); in z_vrfy_k_thread_stack_space_get()
Duserspace.c859 int k_usermode_to_copy(void *dst, const void *src, size_t size) in k_usermode_to_copy() function
/Zephyr-latest/doc/kernel/usermode/
Dsyscalls.rst382 :c:func:`k_usermode_to_copy()` and :c:func:`k_usermode_from_copy()` APIs exist for
402 K_OOPS(k_usermode_to_copy(out_param, &local_out_param, sizeof(*out_param)));
407 the implementation function, and then used :c:func:`k_usermode_to_copy()` to fill
440 K_OOPS(k_usermode_to_copy(size_ptr, &size, sizeof(size)));
571 :c:func:`k_usermode_from_copy()`, :c:func:`k_usermode_to_copy()`
/Zephyr-latest/drivers/counter/
Dmaxim_ds3231.c1323 K_OOPS(k_usermode_to_copy(syncpoint, &value, sizeof(*syncpoint))); in z_vrfy_maxim_ds3231_get_syncpoint()
/Zephyr-latest/doc/releases/
Dmigration-guide-3.6.rst678 * ``z_user_to_copy`` to :c:func:`k_usermode_to_copy`