libc_core/
others.rs

1//! This module provides the `libc` types for Other unclassified types.
2//!
3//!
4
5use num_enum::TryFromPrimitive;
6
7/// Architecture-specific command for the `arch_prctl` syscall.
8#[repr(usize)]
9#[derive(Debug, Clone, TryFromPrimitive)]
10pub enum ArchPrctlCmd {
11    /// Set Per-CPU base
12    SetGS = 0x1001,
13    /// Set Thread Local Storage (TLS) base
14    SetFS = 0x1002,
15    /// Get Thread Local Storage (TLS) base
16    GetFS = 0x1003,
17    /// Get Per-CPU base
18    GetGS = 0x1004,
19}