@@ -4,9 +4,9 @@ use libc::c_void;
44use rustix:: fd:: { AsFd , AsRawFd , BorrowedFd } ;
55use rustix:: io:: { Errno , Result } ;
66use rustix:: io_uring:: {
7- io_uring_buf, io_uring_buf_reg, io_uring_buf_ring, io_uring_params, io_uring_register_with ,
8- io_uring_rsrc_update, io_uring_setup, IoringFeatureFlags , IoringRegisterFlags ,
9- IoringRegisterOp ,
7+ io_uring_buf, io_uring_buf_reg, io_uring_buf_ring, io_uring_params, io_uring_ptr ,
8+ io_uring_register_with , io_uring_rsrc_update, io_uring_setup, IoringFeatureFlags ,
9+ IoringRegisterFlags , IoringRegisterOp ,
1010} ;
1111#[ cfg( feature = "mm" ) ]
1212use rustix:: mm:: { MapFlags , ProtFlags } ;
3636
3737fn register_ring ( fd : BorrowedFd < ' _ > ) -> Result < BorrowedFd < ' _ > > {
3838 let update = io_uring_rsrc_update {
39- data : fd. as_raw_fd ( ) as u64 ,
39+ data : io_uring_ptr :: new ( fd. as_raw_fd ( ) as u64 as * mut c_void ) ,
4040 offset : u32:: MAX ,
4141 resv : 0 ,
4242 } ;
5959{
6060 let update = io_uring_rsrc_update {
6161 offset : fd. as_raw_fd ( ) as u32 ,
62- data : 0 ,
62+ data : io_uring_ptr :: null ( ) ,
6363 resv : 0 ,
6464 } ;
6565
0 commit comments