File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
src/unix/linux_like/linux Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -2062,9 +2062,9 @@ fn test_android(target: &str) {
2062
2062
| "PF_IO_WORKER"
2063
2063
| "PF_WQ_WORKER"
2064
2064
| "PF_FORKNOEXEC"
2065
+ | "PF_MCE_PROCESS"
2065
2066
| "PF_SUPERPRIV"
2066
2067
| "PF_DUMPCORE"
2067
- | "PF_MCE_PROCESS"
2068
2068
| "PF_SIGNALED"
2069
2069
| "PF_MEMALLOC"
2070
2070
| "PF_NPROC_EXCEEDED"
@@ -2080,6 +2080,7 @@ fn test_android(target: &str) {
2080
2080
| "PF_NO_SETAFFINITY"
2081
2081
| "PF_MCE_EARLY"
2082
2082
| "PF_MEMALLOC_PIN"
2083
+ | "PF_BLOCK_TS"
2083
2084
| "PF_SUSPEND_TASK" => true ,
2084
2085
2085
2086
_ => false ,
@@ -4315,7 +4316,9 @@ fn test_linux(target: &str) {
4315
4316
| "PF_RANDOMIZE"
4316
4317
| "PF_NO_SETAFFINITY"
4317
4318
| "PF_MCE_EARLY"
4318
- | "PF_MEMALLOC_PIN" => true ,
4319
+ | "PF_MEMALLOC_PIN"
4320
+ | "PF_BLOCK_TS"
4321
+ | "PF_SUSPEND_TASK" => true ,
4319
4322
4320
4323
// FIXME: Requires >= 6.9 kernel headers.
4321
4324
"EPIOCSPARAMS"
Original file line number Diff line number Diff line change @@ -5656,6 +5656,14 @@ pub const PF_RANDOMIZE: c_int = 0x00400000;
5656
5656
pub const PF_NO_SETAFFINITY : c_int = 0x04000000 ;
5657
5657
pub const PF_MCE_EARLY : c_int = 0x08000000 ;
5658
5658
pub const PF_MEMALLOC_PIN : c_int = 0x10000000 ;
5659
+ pub const PF_BLOCK_TS : c_int = 0x20000000 ;
5660
+ pub const PF_SUSPEND_TASK : c_int = PF_SUSPEND_TASK_UINT as _ ;
5661
+ // The used value is the highest possible bit fitting on 32 bits, so directly
5662
+ // defining it as a signed integer causes the compiler to report an overflow.
5663
+ // Use instead a private intermediary that assuringly has the correct type and
5664
+ // cast it where necessary to the wanted final type, which preserves the
5665
+ // desired information as-is in terms of integer representation.
5666
+ const PF_SUSPEND_TASK_UINT : c_uint = 0x80000000 ;
5659
5667
5660
5668
pub const CSIGNAL : c_int = 0x000000ff ;
5661
5669
You can’t perform that action at this time.
0 commit comments