Re: [PATCH net-next v3 7/8] rust: Add read_poll_timeout functions
From: Andrew Lunn
Date: Fri Oct 18 2024 - 10:22:32 EST
> + // SAFETY: FFI call.
> + unsafe {
> + $crate::bindings::__might_sleep(
> + ::core::file!().as_ptr() as *const i8,
> + ::core::line!() as i32,
> + )
Can this be pulled out into an easy to share macro? I expect to see
this to be scattered in a number of files, so making it easy to use
would be good.
Andrew