pub fn sys_waitid(
locked: &mut Locked<Unlocked>,
current_task: &CurrentTask,
id_type: u32,
id: i32,
user_info: MultiArchUserRef<siginfo_t, siginfo_t>,
options: u32,
user_rusage: RUsagePtr,
) -> Result<(), Errno>Expand description
The waitid syscall waits for a child process to change state.
§Args
id_type: The type of ID to wait for.id: The ID to wait for.user_info: A pointer to asiginfo_tstructure that will be filled with information about the state change.options: A bitmask of flags that control the behavior of the syscall.user_rusage: An optional pointer to arusagestructure that will be filled with resource usage information.
§Returns
Ok(()) on success. Otherwise, returns an Errno with the error code.