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 @@ -2003,9 +2003,9 @@ fn test_android(target: &str) {
2003
2003
| "PF_IO_WORKER"
2004
2004
| "PF_WQ_WORKER"
2005
2005
| "PF_FORKNOEXEC"
2006
+ | "PF_MCE_PROCESS"
2006
2007
| "PF_SUPERPRIV"
2007
2008
| "PF_DUMPCORE"
2008
- | "PF_MCE_PROCESS"
2009
2009
| "PF_SIGNALED"
2010
2010
| "PF_MEMALLOC"
2011
2011
| "PF_NPROC_EXCEEDED"
@@ -2021,6 +2021,7 @@ fn test_android(target: &str) {
2021
2021
| "PF_NO_SETAFFINITY"
2022
2022
| "PF_MCE_EARLY"
2023
2023
| "PF_MEMALLOC_PIN"
2024
+ | "PF_BLOCK_TS"
2024
2025
| "PF_SUSPEND_TASK" => true ,
2025
2026
2026
2027
_ => false ,
@@ -4240,7 +4241,9 @@ fn test_linux(target: &str) {
4240
4241
| "PF_RANDOMIZE"
4241
4242
| "PF_NO_SETAFFINITY"
4242
4243
| "PF_MCE_EARLY"
4243
- | "PF_MEMALLOC_PIN" => true ,
4244
+ | "PF_MEMALLOC_PIN"
4245
+ | "PF_BLOCK_TS"
4246
+ | "PF_SUSPEND_TASK" => true ,
4244
4247
4245
4248
// FIXME: Requires >= 6.9 kernel headers.
4246
4249
"EPIOCSPARAMS"
Original file line number Diff line number Diff line change @@ -5693,6 +5693,14 @@ pub const PF_RANDOMIZE: c_int = 0x00400000;
5693
5693
pub const PF_NO_SETAFFINITY : c_int = 0x04000000 ;
5694
5694
pub const PF_MCE_EARLY : c_int = 0x08000000 ;
5695
5695
pub const PF_MEMALLOC_PIN : c_int = 0x10000000 ;
5696
+ pub const PF_BLOCK_TS : c_int = 0x20000000 ;
5697
+ pub const PF_SUSPEND_TASK : c_int = PF_SUSPEND_TASK_UINT as _ ;
5698
+ // The used value is the highest possible bit fitting on 32 bits, so directly
5699
+ // defining it as a signed integer causes the compiler to report an overflow.
5700
+ // Use instead a private intermediary that assuringly has the correct type and
5701
+ // cast it where necessary to the wanted final type, which preserves the
5702
+ // desired information as-is in terms of integer representation.
5703
+ const PF_SUSPEND_TASK_UINT : c_uint = 0x80000000 ;
5696
5704
5697
5705
pub const CSIGNAL : c_int = 0x000000ff ;
5698
5706
You can’t perform that action at this time.
0 commit comments