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

Function set_fs

src/backend/linux_raw/runtime/syscalls.rs:126–135  ·  view source on GitHub ↗
(data: *mut c::c_void)

Source from the content-addressed store, hash-verified

124 #[cfg(target_arch = "x86_64")]
125 #[inline]
126 pub(crate) unsafe fn set_fs(data: *mut c::c_void) {
127 ret_infallible(syscall_readonly!(
128 __NR_arch_prctl,
129 c_uint(ARCH_SET_FS),
130 data,
131 zero(),
132 zero(),
133 zero()
134 ))
135 }
136
137 #[inline]
138 pub(crate) unsafe fn set_tid_address(data: *mut c::c_void) -> Pid {

Callers

nothing calls this directly

Calls 1

ret_infallibleFunction · 0.50

Tested by

no test coverage detected