Skip to content

Commit 8071e79

Browse files
Add sysctl.h constants in linux
1 parent 240de1f commit 8071e79

File tree

1 file changed

+133
-0
lines changed
  • src/unix/linux_like/linux

1 file changed

+133
-0
lines changed

src/unix/linux_like/linux/mod.rs

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4029,6 +4029,139 @@ pub const DCCP_SOCKOPT_CCID_TX_INFO: ::c_int = 192;
40294029
/// maximum number of services provided on the same listening port
40304030
pub const DCCP_SERVICE_LIST_MAX_LEN: ::c_int = 32;
40314031

4032+
pub const CTL_KERN: ::c_int = 1;
4033+
pub const CTL_VM: ::c_int = 2;
4034+
pub const CTL_NET: ::c_int = 3;
4035+
pub const CTL_FS: ::c_int = 5;
4036+
pub const CTL_DEBUG: ::c_int = 6;
4037+
pub const CTL_DEV: ::c_int = 7;
4038+
pub const CTL_BUS: ::c_int = 8;
4039+
pub const CTL_ABI: ::c_int = 9;
4040+
pub const CTL_CPU: ::c_int = 10;
4041+
4042+
pub const CTL_BUS_ISA: ::c_int = 1;
4043+
4044+
pub const INOTIFY_MAX_USER_INSTANCES: ::c_int = 1;
4045+
pub const INOTIFY_MAX_USER_WATCHES: ::c_int = 2;
4046+
pub const INOTIFY_MAX_QUEUED_EVENTS: ::c_int = 3;
4047+
4048+
pub const KERN_OSTYPE: ::c_int = 1;
4049+
pub const KERN_OSRELEASE: ::c_int = 2;
4050+
pub const KERN_OSREV: ::c_int = 3;
4051+
pub const KERN_VERSION: ::c_int = 4;
4052+
pub const KERN_SECUREMASK: ::c_int = 5;
4053+
pub const KERN_PROF: ::c_int = 6;
4054+
pub const KERN_NODENAME: ::c_int = 7;
4055+
pub const KERN_DOMAINNAME: ::c_int = 8;
4056+
pub const KERN_PANIC: ::c_int = 15;
4057+
pub const KERN_REALROOTDEV: ::c_int = 16;
4058+
pub const KERN_SPARC_REBOOT: ::c_int = 21;
4059+
pub const KERN_CTLALTDEL: ::c_int = 22;
4060+
pub const KERN_PRINTK: ::c_int = 23;
4061+
pub const KERN_NAMETRANS: ::c_int = 24;
4062+
pub const KERN_PPC_HTABRECLAIM: ::c_int = 25;
4063+
pub const KERN_PPC_ZEROPAGED: ::c_int = 26;
4064+
pub const KERN_PPC_POWERSAVE_NAP: ::c_int = 27;
4065+
pub const KERN_MODPROBE: ::c_int = 28;
4066+
pub const KERN_SG_BIG_BUFF: ::c_int = 29;
4067+
pub const KERN_ACCT: ::c_int = 30;
4068+
pub const KERN_PPC_L2CR: ::c_int = 31;
4069+
pub const KERN_RTSIGNR: ::c_int = 32;
4070+
pub const KERN_RTSIGMAX: ::c_int = 33;
4071+
pub const KERN_SHMMAX: ::c_int = 34;
4072+
pub const KERN_MSGMAX: ::c_int = 35;
4073+
pub const KERN_MSGMNB: ::c_int = 36;
4074+
pub const KERN_MSGPOOL: ::c_int = 37;
4075+
pub const KERN_SYSRQ: ::c_int = 38;
4076+
pub const KERN_MAX_THREADS: ::c_int = 39;
4077+
pub const KERN_RANDOM: ::c_int = 40;
4078+
pub const KERN_SHMALL: ::c_int = 41;
4079+
pub const KERN_MSGMNI: ::c_int = 42;
4080+
pub const KERN_SEM: ::c_int = 43;
4081+
pub const KERN_SPARC_STOP_A: ::c_int = 44;
4082+
pub const KERN_SHMMNI: ::c_int = 45;
4083+
pub const KERN_OVERFLOWUID: ::c_int = 46;
4084+
pub const KERN_OVERFLOWGID: ::c_int = 47;
4085+
pub const KERN_SHMPATH: ::c_int = 48;
4086+
pub const KERN_HOTPLUG: ::c_int = 49;
4087+
pub const KERN_IEEE_EMULATION_WARNINGS: ::c_int = 50;
4088+
pub const KERN_S390_USER_DEBUG_LOGGING: ::c_int = 51;
4089+
pub const KERN_CORE_USES_PID: ::c_int = 52;
4090+
pub const KERN_TAINTED: ::c_int = 53;
4091+
pub const KERN_CADPID: ::c_int = 54;
4092+
pub const KERN_PIDMAX: ::c_int = 55;
4093+
pub const KERN_CORE_PATTERN: ::c_int = 56;
4094+
pub const KERN_PANIC_ON_OOPS: ::c_int = 57;
4095+
pub const KERN_HPPA_PWRSW: ::c_int = 58;
4096+
pub const KERN_HPPA_UNALIGNED: ::c_int = 59;
4097+
pub const KERN_PRINTK_RATELIMIT: ::c_int = 60;
4098+
pub const KERN_PRINTK_RATELIMIT_BURST: ::c_int = 61;
4099+
pub const KERN_PTY: ::c_int = 62;
4100+
pub const KERN_NGROUPS_MAX: ::c_int = 63;
4101+
pub const KERN_SPARC_SCONS_PWROFF: ::c_int = 64;
4102+
pub const KERN_HZ_TIMER: ::c_int = 65;
4103+
pub const KERN_UNKNOWN_NMI_PANIC: ::c_int = 66;
4104+
pub const KERN_BOOTLOADER_TYPE: ::c_int = 67;
4105+
pub const KERN_RANDOMIZE: ::c_int = 68;
4106+
pub const KERN_SETUID_DUMPABLE: ::c_int = 69;
4107+
pub const KERN_SPIN_RETRY: ::c_int = 70;
4108+
pub const KERN_ACPI_VIDEO_FLAGS: ::c_int = 71;
4109+
pub const KERN_IA64_UNALIGNED: ::c_int = 72;
4110+
pub const KERN_COMPAT_LOG: ::c_int = 73;
4111+
pub const KERN_MAX_LOCK_DEPTH: ::c_int = 74;
4112+
pub const KERN_NMI_WATCHDOG: ::c_int = 75;
4113+
pub const KERN_PANIC_ON_NMI: ::c_int = 76;
4114+
4115+
pub const VM_OVERCOMMIT_MEMORY: ::c_int = 5;
4116+
pub const VM_PAGE_CLUSTER: ::c_int = 10;
4117+
pub const VM_DIRTY_BACKGROUND: ::c_int = 11;
4118+
pub const VM_DIRTY_RATIO: ::c_int = 12;
4119+
pub const VM_DIRTY_WB_CS: ::c_int = 13;
4120+
pub const VM_DIRTY_EXPIRE_CS: ::c_int = 14;
4121+
pub const VM_NR_PDFLUSH_THREADS: ::c_int = 15;
4122+
pub const VM_OVERCOMMIT_RATIO: ::c_int = 16;
4123+
pub const VM_PAGEBUF: ::c_int = 17;
4124+
pub const VM_HUGETLB_PAGES: ::c_int = 18;
4125+
pub const VM_SWAPPINESS: ::c_int = 19;
4126+
pub const VM_LOWMEM_RESERVE_RATIO: ::c_int = 20;
4127+
pub const VM_MIN_FREE_KBYTES: ::c_int = 21;
4128+
pub const VM_MAX_MAP_COUNT: ::c_int = 22;
4129+
pub const VM_LAPTOP_MODE: ::c_int = 23;
4130+
pub const VM_BLOCK_DUMP: ::c_int = 24;
4131+
pub const VM_HUGETLB_GROUP: ::c_int = 25;
4132+
pub const VM_VFS_CACHE_PRESSURE: ::c_int = 26;
4133+
pub const VM_LEGACY_VA_LAYOUT: ::c_int = 27;
4134+
pub const VM_SWAP_TOKEN_TIMEOUT: ::c_int = 28;
4135+
pub const VM_DROP_PAGECACHE: ::c_int = 29;
4136+
pub const VM_PERCPU_PAGELIST_FRACTION: ::c_int = 30;
4137+
pub const VM_ZONE_RECLAIM_MODE: ::c_int = 31;
4138+
pub const VM_MIN_UNMAPPED: ::c_int = 32;
4139+
pub const VM_PANIC_ON_OOM: ::c_int = 33;
4140+
pub const VM_VDSO_ENABLED: ::c_int = 34;
4141+
pub const VM_MIN_SLAB: ::c_int = 35;
4142+
4143+
pub const NET_CORE: ::c_int = 1;
4144+
pub const NET_ETHER: ::c_int = 2;
4145+
pub const NET_802: ::c_int = 3;
4146+
pub const NET_UNIX: ::c_int = 4;
4147+
pub const NET_IPV4: ::c_int = 5;
4148+
pub const NET_IPX: ::c_int = 6;
4149+
pub const NET_ATALK: ::c_int = 7;
4150+
pub const NET_NETROM: ::c_int = 8;
4151+
pub const NET_AX25: ::c_int = 9;
4152+
pub const NET_BRIDGE: ::c_int = 10;
4153+
pub const NET_ROSE: ::c_int = 11;
4154+
pub const NET_IPV6: ::c_int = 12;
4155+
pub const NET_X25: ::c_int = 13;
4156+
pub const NET_TR: ::c_int = 14;
4157+
pub const NET_DECNET: ::c_int = 15;
4158+
pub const NET_ECONET: ::c_int = 16;
4159+
pub const NET_SCTP: ::c_int = 17;
4160+
pub const NET_LLC: ::c_int = 18;
4161+
pub const NET_NETFILTER: ::c_int = 19;
4162+
pub const NET_DCCP: ::c_int = 20;
4163+
pub const NET_IRDA: ::c_int = 412;
4164+
40324165
f! {
40334166
pub fn NLA_ALIGN(len: ::c_int) -> ::c_int {
40344167
return ((len) + NLA_ALIGNTO - 1) & !(NLA_ALIGNTO - 1)

0 commit comments

Comments
 (0)