Commit 73f264c
committed
linux: Correct the value of
PowerPC, Sparc, and MIPS (32- and 64-bit for all) have different `_IOC`
numbers, meaning the constants were inaccurate. Example error on
PowerPC64:
bad `EPIOCSPARAMS` value at byte 4: rust: 64 (0x40) != c 128 (0x80)
rust bytes: 00 00 00 00 40 08 8a 01
c bytes: 00 00 00 00 80 08 8a 01
bad `EPIOCGPARAMS` value at byte 4: rust: 128 (0x80) != c 64 (0x40)
rust bytes: 00 00 00 00 80 08 8a 02
c bytes: 00 00 00 00 40 08 8a 02
Resolve this by using `_IOW` and `_IOR`.
Source: https://github.com/torvalds/linux/blob/502d801f0ab03e4f32f9a33d203154ce84887921/include/uapi/linux/eventpoll.h#L97-L99
Fixes: fb58c01 ("epoll: add busy polling parameters")EPIOC[GS]PARAMS with nonstandard _IOC1 parent ccadc03 commit 73f264c
2 files changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3823 | 3823 | | |
3824 | 3824 | | |
3825 | 3825 | | |
3826 | | - | |
| 3826 | + | |
3827 | 3827 | | |
3828 | 3828 | | |
3829 | 3829 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3649 | 3649 | | |
3650 | 3650 | | |
3651 | 3651 | | |
3652 | | - | |
3653 | | - | |
| 3652 | + | |
| 3653 | + | |
| 3654 | + | |
3654 | 3655 | | |
3655 | 3656 | | |
3656 | 3657 | | |
| |||
0 commit comments