@@ -3153,6 +3153,136 @@ pub const RTMSG_DELDEVICE: u32 = 0x12;
3153
3153
pub const RTMSG_NEWROUTE : u32 = 0x21 ;
3154
3154
pub const RTMSG_DELROUTE : u32 = 0x22 ;
3155
3155
3156
+ pub const CTL_KERN : :: c_int = 1 ;
3157
+ pub const CTL_VM : :: c_int = 2 ;
3158
+ pub const CTL_NET : :: c_int = 3 ;
3159
+ pub const CTL_FS : :: c_int = 5 ;
3160
+ pub const CTL_DEBUG : :: c_int = 6 ;
3161
+ pub const CTL_DEV : :: c_int = 7 ;
3162
+ pub const CTL_BUS : :: c_int = 8 ;
3163
+ pub const CTL_ABI : :: c_int = 9 ;
3164
+ pub const CTL_CPU : :: c_int = 10 ;
3165
+
3166
+ pub const CTL_BUS_ISA : :: c_int = 1 ;
3167
+
3168
+ pub const INOTIFY_MAX_USER_INSTANCES : :: c_int = 1 ;
3169
+ pub const INOTIFY_MAX_USER_WATCHES : :: c_int = 2 ;
3170
+ pub const INOTIFY_MAX_QUEUED_EVENTS : :: c_int = 3 ;
3171
+
3172
+ pub const KERN_OSTYPE : :: c_int = 1 ;
3173
+ pub const KERN_OSRELEASE : :: c_int = 2 ;
3174
+ pub const KERN_OSREV : :: c_int = 3 ;
3175
+ pub const KERN_VERSION : :: c_int = 4 ;
3176
+ pub const KERN_SECUREMASK : :: c_int = 5 ;
3177
+ pub const KERN_PROF : :: c_int = 6 ;
3178
+ pub const KERN_NODENAME : :: c_int = 7 ;
3179
+ pub const KERN_DOMAINNAME : :: c_int = 8 ;
3180
+ pub const KERN_CAP_BSET : :: c_int = 14 ;
3181
+ pub const KERN_PANIC : :: c_int = 15 ;
3182
+ pub const KERN_REALROOTDEV : :: c_int = 16 ;
3183
+ pub const KERN_SPARC_REBOOT : :: c_int = 21 ;
3184
+ pub const KERN_CTLALTDEL : :: c_int = 22 ;
3185
+ pub const KERN_PRINTK : :: c_int = 23 ;
3186
+ pub const KERN_NAMETRANS : :: c_int = 24 ;
3187
+ pub const KERN_PPC_HTABRECLAIM : :: c_int = 25 ;
3188
+ pub const KERN_PPC_ZEROPAGED : :: c_int = 26 ;
3189
+ pub const KERN_PPC_POWERSAVE_NAP : :: c_int = 27 ;
3190
+ pub const KERN_MODPROBE : :: c_int = 28 ;
3191
+ pub const KERN_SG_BIG_BUFF : :: c_int = 29 ;
3192
+ pub const KERN_ACCT : :: c_int = 30 ;
3193
+ pub const KERN_PPC_L2CR : :: c_int = 31 ;
3194
+ pub const KERN_RTSIGNR : :: c_int = 32 ;
3195
+ pub const KERN_RTSIGMAX : :: c_int = 33 ;
3196
+ pub const KERN_SHMMAX : :: c_int = 34 ;
3197
+ pub const KERN_MSGMAX : :: c_int = 35 ;
3198
+ pub const KERN_MSGMNB : :: c_int = 36 ;
3199
+ pub const KERN_MSGPOOL : :: c_int = 37 ;
3200
+ pub const KERN_SYSRQ : :: c_int = 38 ;
3201
+ pub const KERN_MAX_THREADS : :: c_int = 39 ;
3202
+ pub const KERN_RANDOM : :: c_int = 40 ;
3203
+ pub const KERN_SHMALL : :: c_int = 41 ;
3204
+ pub const KERN_MSGMNI : :: c_int = 42 ;
3205
+ pub const KERN_SEM : :: c_int = 43 ;
3206
+ pub const KERN_SPARC_STOP_A : :: c_int = 44 ;
3207
+ pub const KERN_SHMMNI : :: c_int = 45 ;
3208
+ pub const KERN_OVERFLOWUID : :: c_int = 46 ;
3209
+ pub const KERN_OVERFLOWGID : :: c_int = 47 ;
3210
+ pub const KERN_SHMPATH : :: c_int = 48 ;
3211
+ pub const KERN_HOTPLUG : :: c_int = 49 ;
3212
+ pub const KERN_IEEE_EMULATION_WARNINGS : :: c_int = 50 ;
3213
+ pub const KERN_S390_USER_DEBUG_LOGGING : :: c_int = 51 ;
3214
+ pub const KERN_CORE_USES_PID : :: c_int = 52 ;
3215
+ pub const KERN_TAINTED : :: c_int = 53 ;
3216
+ pub const KERN_CADPID : :: c_int = 54 ;
3217
+ pub const KERN_PIDMAX : :: c_int = 55 ;
3218
+ pub const KERN_CORE_PATTERN : :: c_int = 56 ;
3219
+ pub const KERN_PANIC_ON_OOPS : :: c_int = 57 ;
3220
+ pub const KERN_HPPA_PWRSW : :: c_int = 58 ;
3221
+ pub const KERN_HPPA_UNALIGNED : :: c_int = 59 ;
3222
+ pub const KERN_PRINTK_RATELIMIT : :: c_int = 60 ;
3223
+ pub const KERN_PRINTK_RATELIMIT_BURST : :: c_int = 61 ;
3224
+ pub const KERN_PTY : :: c_int = 62 ;
3225
+ pub const KERN_NGROUPS_MAX : :: c_int = 63 ;
3226
+ pub const KERN_SPARC_SCONS_PWROFF : :: c_int = 64 ;
3227
+ pub const KERN_HZ_TIMER : :: c_int = 65 ;
3228
+ pub const KERN_UNKNOWN_NMI_PANIC : :: c_int = 66 ;
3229
+ pub const KERN_BOOTLOADER_TYPE : :: c_int = 67 ;
3230
+ pub const KERN_RANDOMIZE : :: c_int = 68 ;
3231
+ pub const KERN_SETUID_DUMPABLE : :: c_int = 69 ;
3232
+ pub const KERN_SPIN_RETRY : :: c_int = 70 ;
3233
+ pub const KERN_ACPI_VIDEO_FLAGS : :: c_int = 71 ;
3234
+ pub const KERN_IA64_UNALIGNED : :: c_int = 72 ;
3235
+ pub const KERN_COMPAT_LOG : :: c_int = 73 ;
3236
+ pub const KERN_MAX_LOCK_DEPTH : :: c_int = 74 ;
3237
+
3238
+ pub const VM_OVERCOMMIT_MEMORY : :: c_int = 5 ;
3239
+ pub const VM_PAGE_CLUSTER : :: c_int = 10 ;
3240
+ pub const VM_DIRTY_BACKGROUND : :: c_int = 11 ;
3241
+ pub const VM_DIRTY_RATIO : :: c_int = 12 ;
3242
+ pub const VM_DIRTY_WB_CS : :: c_int = 13 ;
3243
+ pub const VM_DIRTY_EXPIRE_CS : :: c_int = 14 ;
3244
+ pub const VM_NR_PDFLUSH_THREADS : :: c_int = 15 ;
3245
+ pub const VM_OVERCOMMIT_RATIO : :: c_int = 16 ;
3246
+ pub const VM_PAGEBUF : :: c_int = 17 ;
3247
+ pub const VM_HUGETLB_PAGES : :: c_int = 18 ;
3248
+ pub const VM_SWAPPINESS : :: c_int = 19 ;
3249
+ pub const VM_LOWMEM_RESERVE_RATIO : :: c_int = 20 ;
3250
+ pub const VM_MIN_FREE_KBYTES : :: c_int = 21 ;
3251
+ pub const VM_MAX_MAP_COUNT : :: c_int = 22 ;
3252
+ pub const VM_LAPTOP_MODE : :: c_int = 23 ;
3253
+ pub const VM_BLOCK_DUMP : :: c_int = 24 ;
3254
+ pub const VM_HUGETLB_GROUP : :: c_int = 25 ;
3255
+ pub const VM_VFS_CACHE_PRESSURE : :: c_int = 26 ;
3256
+ pub const VM_LEGACY_VA_LAYOUT : :: c_int = 27 ;
3257
+ pub const VM_SWAP_TOKEN_TIMEOUT : :: c_int = 28 ;
3258
+ pub const VM_DROP_PAGECACHE : :: c_int = 29 ;
3259
+ pub const VM_PERCPU_PAGELIST_FRACTION : :: c_int = 30 ;
3260
+ pub const VM_ZONE_RECLAIM_MODE : :: c_int = 31 ;
3261
+ pub const VM_MIN_UNMAPPED : :: c_int = 32 ;
3262
+ pub const VM_PANIC_ON_OOM : :: c_int = 33 ;
3263
+ pub const VM_VDSO_ENABLED : :: c_int = 34 ;
3264
+
3265
+ pub const NET_CORE : :: c_int = 1 ;
3266
+ pub const NET_ETHER : :: c_int = 2 ;
3267
+ pub const NET_802 : :: c_int = 3 ;
3268
+ pub const NET_UNIX : :: c_int = 4 ;
3269
+ pub const NET_IPV4 : :: c_int = 5 ;
3270
+ pub const NET_IPX : :: c_int = 6 ;
3271
+ pub const NET_ATALK : :: c_int = 7 ;
3272
+ pub const NET_NETROM : :: c_int = 8 ;
3273
+ pub const NET_AX25 : :: c_int = 9 ;
3274
+ pub const NET_BRIDGE : :: c_int = 10 ;
3275
+ pub const NET_ROSE : :: c_int = 11 ;
3276
+ pub const NET_IPV6 : :: c_int = 12 ;
3277
+ pub const NET_X25 : :: c_int = 13 ;
3278
+ pub const NET_TR : :: c_int = 14 ;
3279
+ pub const NET_DECNET : :: c_int = 15 ;
3280
+ pub const NET_ECONET : :: c_int = 16 ;
3281
+ pub const NET_SCTP : :: c_int = 17 ;
3282
+ pub const NET_LLC : :: c_int = 18 ;
3283
+ pub const NET_NETFILTER : :: c_int = 19 ;
3284
+ pub const NET_DCCP : :: c_int = 20 ;
3285
+
3156
3286
// Most `*_SUPER_MAGIC` constants are defined at the `linux_like` level; the
3157
3287
// following are only available on newer Linux versions than the versions
3158
3288
// currently used in CI in some configurations, so we define them here.
0 commit comments