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 @@ -3864,6 +3864,9 @@ fn test_linux(target: &str) {
3864
3864
// kernel so we can drop this and test the type once this new version is used in CI.
3865
3865
"sched_attr" => true ,
3866
3866
3867
+ // FIXME: Requires >= 6.9 kernel headers.
3868
+ "epoll_params" => true ,
3869
+
3867
3870
_ => false ,
3868
3871
}
3869
3872
} ) ;
@@ -4306,6 +4309,10 @@ fn test_linux(target: &str) {
4306
4309
| "SCHED_FLAG_UTIL_CLAMP"
4307
4310
| "SCHED_FLAG_ALL" if musl => true , // Needs more recent linux headers.
4308
4311
4312
+ // FIXME: Requires >= 6.9 kernel headers.
4313
+ "EPIOCSPARAMS"
4314
+ | "EPIOCGPARAMS" => true ,
4315
+
4309
4316
_ => false ,
4310
4317
}
4311
4318
} ) ;
Original file line number Diff line number Diff line change @@ -550,6 +550,8 @@ ENOTSUP
550
550
ENOTUNIQ
551
551
EOF
552
552
EOWNERDEAD
553
+ EPIOCGPARAMS
554
+ EPIOCSPARAMS
553
555
EPOLLERR
554
556
EPOLLET
555
557
EPOLLEXCLUSIVE
@@ -3489,6 +3491,7 @@ epoll_create
3489
3491
epoll_create1
3490
3492
epoll_ctl
3491
3493
epoll_event
3494
+ epoll_params
3492
3495
epoll_pwait
3493
3496
epoll_wait
3494
3497
erand48
Original file line number Diff line number Diff line change @@ -880,6 +880,15 @@ s! {
880
880
pub salt: [ :: c_uchar; TLS_CIPHER_CHACHA20_POLY1305_SALT_SIZE ] ,
881
881
pub rec_seq: [ :: c_uchar; TLS_CIPHER_CHACHA20_POLY1305_REC_SEQ_SIZE ] ,
882
882
}
883
+
884
+ // #include <linux/eventpoll.h>
885
+
886
+ pub struct epoll_params {
887
+ pub busy_poll_usecs: u32 ,
888
+ pub busy_poll_budget: u16 ,
889
+ pub prefer_busy_poll: u8 ,
890
+ pub __pad: u8 , // Must be zero
891
+ }
883
892
}
884
893
885
894
s_no_extra_traits ! {
@@ -4936,6 +4945,10 @@ pub const SCHED_FLAG_ALL: ::c_int = SCHED_FLAG_RESET_ON_FORK
4936
4945
| SCHED_FLAG_KEEP_ALL
4937
4946
| SCHED_FLAG_UTIL_CLAMP ;
4938
4947
4948
+ // ioctl_eventpoll: added in Linux 6.9
4949
+ pub const EPIOCSPARAMS : :: Ioctl = 0x40088a01 ;
4950
+ pub const EPIOCGPARAMS : :: Ioctl = 0x80088a02 ;
4951
+
4939
4952
f ! {
4940
4953
pub fn NLA_ALIGN ( len: :: c_int) -> :: c_int {
4941
4954
return ( ( len) + NLA_ALIGNTO - 1 ) & !( NLA_ALIGNTO - 1 )
You can’t perform that action at this time.
0 commit comments