Skip to main content Skip to main content
Pigweed's logo Pigweed
code_xml
  1. Home
  2. Reference
  3. Rust
  4. pw_kernel
  5. syscall_defs
  6. object_set_peer_user_signal

object_set_peer_user_signal

Function object_set_peer_user_signal 

Source
pub unsafe extern "C" fn object_set_peer_user_signal(
    object_handle: u32,
    set: u32,
) -> isize
Expand description

Set or clear Signals::USER on the paired peer.

Modeled after a level-triggered hardware interrupt: the signaler owns the signal and controls it in both directions. set != 0 raises USER on the peer; set == 0 lowers USER on the peer. The receiver does not clear the signal — only the sender does.

If the signaler process terminates or is reset, the kernel automatically lowers Signals::USER on the peer object to prevent signal leaks. Symmetrically, if the receiver process terminates and restarts, its own Signals::USER is preserved as long as the signaler remains alive and has not lowered it.

§Returns