File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed
src/unix/linux_like/linux Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -3839,6 +3839,9 @@ fn test_linux(target: &str) {
3839
3839
// kernel so we can drop this and test the type once this new version is used in CI.
3840
3840
"sched_attr" => true ,
3841
3841
3842
+ // FIXME: Requires >= 6.9 kernel headers.
3843
+ "epoll_params" => true ,
3844
+
3842
3845
_ => false ,
3843
3846
}
3844
3847
} ) ;
@@ -4287,6 +4290,10 @@ fn test_linux(target: &str) {
4287
4290
| "SCHED_FLAG_UTIL_CLAMP"
4288
4291
| "SCHED_FLAG_ALL" if musl => true , // Needs more recent linux headers.
4289
4292
4293
+ // FIXME: Requires >= 6.9 kernel headers.
4294
+ "EPIOCSPARAMS"
4295
+ | "EPIOCGPARAMS" => true ,
4296
+
4290
4297
_ => false ,
4291
4298
}
4292
4299
} ) ;
Original file line number Diff line number Diff line change @@ -556,6 +556,8 @@ ENOTSUP
556
556
ENOTUNIQ
557
557
EOF
558
558
EOWNERDEAD
559
+ EPIOCGPARAMS
560
+ EPIOCSPARAMS
559
561
EPOLLERR
560
562
EPOLLET
561
563
EPOLLEXCLUSIVE
@@ -3532,6 +3534,7 @@ epoll_create
3532
3534
epoll_create1
3533
3535
epoll_ctl
3534
3536
epoll_event
3537
+ epoll_params
3535
3538
epoll_pwait
3536
3539
epoll_wait
3537
3540
erand48
Original file line number Diff line number Diff line change @@ -1036,6 +1036,15 @@ s! {
1036
1036
pub get_args: __u16,
1037
1037
pub name: [ c_char; :: IFNAMSIZ ] ,
1038
1038
}
1039
+
1040
+ // #include <linux/eventpoll.h>
1041
+
1042
+ pub struct epoll_params {
1043
+ pub busy_poll_usecs: u32 ,
1044
+ pub busy_poll_budget: u16 ,
1045
+ pub prefer_busy_poll: u8 ,
1046
+ pub __pad: u8 , // Must be zero
1047
+ }
1039
1048
}
1040
1049
1041
1050
cfg_if ! {
@@ -5172,6 +5181,10 @@ pub const SCHED_FLAG_ALL: ::c_int = SCHED_FLAG_RESET_ON_FORK
5172
5181
| SCHED_FLAG_KEEP_ALL
5173
5182
| SCHED_FLAG_UTIL_CLAMP ;
5174
5183
5184
+ // ioctl_eventpoll: added in Linux 6.9
5185
+ pub const EPIOCSPARAMS : :: Ioctl = 0x40088a01 ;
5186
+ pub const EPIOCGPARAMS : :: Ioctl = 0x80088a02 ;
5187
+
5175
5188
f ! {
5176
5189
pub fn NLA_ALIGN ( len: :: c_int) -> :: c_int {
5177
5190
return ( ( len) + NLA_ALIGNTO - 1 ) & !( NLA_ALIGNTO - 1 )
You can’t perform that action at this time.
0 commit comments