You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
Jyri Sarha
committed
ipc4: notification: make send_resource_notif() a syscall
Move user-facing notification functions
(send_copier_gateway_xrun_notif_msg, send_gateway_xrun_notif_msg,
send_mixer_underrun_notif_msg, send_process_data_error_notif_msg) to a
new notification-user.c file so they can run in userspace.
The send_resource_notif() function, which depends on the kernel-side
notification pool and IPC message infrastructure, is converted to a
Zephyr syscall. The implementation is renamed to
z_impl_send_resource_notif() and remains in notification.c alongside
is_notif_filtered_out() and ipc4_update_notification_mask().
The send_resource_notif() is converted to a system call only if
CONFIG_SOF_USERSPACE_LL=y, without it the behaviour is same as befofe.
A z_vrfy_send_resource_notif() handler is added to validate the
user-provided data buffer and other parameters before forwarding to
the kernel implementation.
Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
0 commit comments