MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / kernel_sigaltstack

Function kernel_sigaltstack

src/backend/linux_raw/runtime/syscalls.rs:167–172  ·  view source on GitHub ↗
(new: Option<Stack>)

Source from the content-addressed store, hash-verified

165
166#[inline]
167pub(crate) unsafe fn kernel_sigaltstack(new: Option<Stack>) -> io::Result<Stack> {
168 let mut old = MaybeUninit::<Stack>::uninit();
169 let new = opt_ref(new.as_ref());
170 ret(syscall!(__NR_sigaltstack, new, &mut old))?;
171 Ok(old.assume_init())
172}
173
174#[inline]
175pub(crate) unsafe fn tkill(tid: Pid, sig: Signal) -> io::Result<()> {

Callers

nothing calls this directly

Calls 4

opt_refFunction · 0.85
assume_initMethod · 0.80
retFunction · 0.50
as_refMethod · 0.45

Tested by

no test coverage detected