@@ -3468,6 +3468,37 @@ pub const NET_DCCP: ::c_int = 20;
3468
3468
pub const HUGETLB_FLAG_ENCODE_SHIFT : :: c_int = 26 ;
3469
3469
pub const MAP_HUGE_SHIFT : :: c_int = HUGETLB_FLAG_ENCODE_SHIFT ;
3470
3470
3471
+ // include/linux/sched.h
3472
+ pub const PF_VCPU : :: c_int = 0x00000001 ;
3473
+ pub const PF_IDLE : :: c_int = 0x00000002 ;
3474
+ pub const PF_EXITING : :: c_int = 0x00000004 ;
3475
+ pub const PF_POSTCOREDUMP : :: c_int = 0x00000008 ;
3476
+ pub const PF_IO_WORKER : :: c_int = 0x00000010 ;
3477
+ pub const PF_WQ_WORKER : :: c_int = 0x00000020 ;
3478
+ pub const PF_FORKNOEXEC : :: c_int = 0x00000040 ;
3479
+ pub const PF_MCE_PROCESS : :: c_int = 0x00000080 ;
3480
+ pub const PF_SUPERPRIV : :: c_int = 0x00000100 ;
3481
+ pub const PF_DUMPCORE : :: c_int = 0x00000200 ;
3482
+ pub const PF_SIGNALED : :: c_int = 0x00000400 ;
3483
+ pub const PF_MEMALLOC : :: c_int = 0x00000800 ;
3484
+ pub const PF_NPROC_EXCEEDED : :: c_int = 0x00001000 ;
3485
+ pub const PF_USED_MATH : :: c_int = 0x00002000 ;
3486
+ pub const PF_USER_WORKER : :: c_int = 0x00004000 ;
3487
+ pub const PF_NOFREEZE : :: c_int = 0x00008000 ;
3488
+
3489
+ pub const PF_KSWAPD : :: c_int = 0x00020000 ;
3490
+ pub const PF_MEMALLOC_NOFS : :: c_int = 0x00040000 ;
3491
+ pub const PF_MEMALLOC_NOIO : :: c_int = 0x00080000 ;
3492
+ pub const PF_LOCAL_THROTTLE : :: c_int = 0x00100000 ;
3493
+ pub const PF_KTHREAD : :: c_int = 0x00200000 ;
3494
+ pub const PF_RANDOMIZE : :: c_int = 0x00400000 ;
3495
+
3496
+ pub const PF_NO_SETAFFINITY : :: c_int = 0x04000000 ;
3497
+ pub const PF_MCE_EARLY : :: c_int = 0x08000000 ;
3498
+ pub const PF_MEMALLOC_PIN : :: c_int = 0x10000000 ;
3499
+
3500
+ pub const PF_SUSPEND_TASK : :: c_int = 0x80000000 ;
3501
+
3471
3502
// Most `*_SUPER_MAGIC` constants are defined at the `linux_like` level; the
3472
3503
// following are only available on newer Linux versions than the versions
3473
3504
// currently used in CI in some configurations, so we define them here.
0 commit comments