pub fn sys_object_signal(
        &self,
        handle_value: HandleValue,
        clear_mask: u32,
        set_mask: u32,
    ) -> ZxResult {
        info!(
            "object.signal: handle_value={:#x}, clear_mask={:#x}, set_mask={:#x}",
            handle_value, clear_mask, set_mask
        );
        let proc = self.thread.proc();
        let object = proc.get_dyn_object_with_rights(handle_value, Rights::SIGNAL)?;
        let allowed_signals = object.allowed_signals();
        info!("{:?} allowed: {:?}", object, allowed_signals);
        let clear_signal = Signal::verify_user_signal(allowed_signals, clear_mask)?;
        let set_signal = Signal::verify_user_signal(allowed_signals, set_mask)?;
        object.signal_change(clear_signal, set_signal);
        Ok(())
    }
/// Signal an object.
///
/// Asserts and deasserts the userspace-accessible signal bits on an object.
Signal an object.
Asserts and deasserts the userspace-accessible signal bits on an object.
Signal an object . Asserts and deasserts the userspace - accessible signal bits on an object .
pub fn sys_object_signal(
        &self,
        handle_value: HandleValue,
        clear_mask: u32,
        set_mask: u32,
    ) -> ZxResult {
        info!(
            "object.signal: handle_value={:#x}, clear_mask={:#x}, set_mask={:#x}",
            handle_value, clear_mask, set_mask
        );
        let proc = self.thread.proc();
        let object = proc.get_dyn_object_with_rights(handle_value, Rights::SIGNAL)?;
        let allowed_signals = object.allowed_signals();
        info!("{:?} allowed: {:?}", object, allowed_signals);
        let clear_signal = Signal::verify_user_signal(allowed_signals, clear_mask)?;
        let set_signal = Signal::verify_user_signal(allowed_signals, set_mask)?;
        object.signal_change(clear_signal, set_signal);
        Ok(())
    }
pub fn sys_object_signal ( & self , handle_value : HandleValue , clear_mask : u32 , set_mask : u32 , ) -> ZxResult { info ! ( " " handle_value clear_mask set_mask ) ; let proc = self . thread . proc ( ) ; let object = proc . get_dyn_object_with_rights ( handle_value , Rights :: SIGNAL ) ? ; let allowed_signals = object . allowed_signals ( ) ; info ! ( " " object allowed_signals ) ; let clear_signal = Signal :: verify_user_signal ( allowed_signals , clear_mask ) ? ; let set_signal = Signal :: verify_user_signal ( allowed_signals , set_mask ) ? ; object . signal_change ( clear_signal , set_signal ) ; Ok ( ( ) ) }
Signal an object.
Signal an object .
&self
handle_value
HandleValue
clear_mask
u32
set_mask
u32
&self
handle_value
HandleValue
clear_mask
u32
set_mask
u32