sys_event_publish

Function sys_event_publish 

Source
pub fn sys_event_publish(trapframe: &mut Trapframe) -> usize
Expand description

Publish a custom integer event to a channel using a channel handle

Arguments:

  • channel_handle: u32 (EventChannel)
  • event_id: u32 (custom event id in “user” namespace)
  • payload: isize (integer payload)

Returns: 0 on success, usize::MAX on error