@@ -160,6 +160,7 @@ pub fn epoll_create(flags: CreateFlags) -> io::Result<OwnedFd> {
160
160
/// is an `Arc<dyn SystemResource>`, then `epoll` can be thought to maintain
161
161
/// a `Weak<dyn SystemResource>` to the file descriptor.
162
162
#[ doc( alias = "epoll_ctl" ) ]
163
+ #[ inline]
163
164
pub fn epoll_add (
164
165
epoll : impl AsFd ,
165
166
source : impl AsFd ,
@@ -185,6 +186,7 @@ pub fn epoll_add(
185
186
///
186
187
/// This sets the events of interest with `target` to `events`.
187
188
#[ doc( alias = "epoll_ctl" ) ]
189
+ #[ inline]
188
190
pub fn epoll_mod (
189
191
epoll : impl AsFd ,
190
192
source : impl AsFd ,
@@ -211,6 +213,7 @@ pub fn epoll_mod(
211
213
///
212
214
/// This also returns the owning `Data`.
213
215
#[ doc( alias = "epoll_ctl" ) ]
216
+ #[ inline]
214
217
pub fn epoll_del ( epoll : impl AsFd , source : impl AsFd ) -> io:: Result < ( ) > {
215
218
// SAFETY: We're calling `epoll_ctl` via FFI and we know how it
216
219
// behaves.
@@ -225,6 +228,7 @@ pub fn epoll_del(epoll: impl AsFd, source: impl AsFd) -> io::Result<()> {
225
228
///
226
229
/// For each event of interest, an element is written to `events`. On
227
230
/// success, this returns the number of written elements.
231
+ #[ inline]
228
232
pub fn epoll_wait (
229
233
epoll : impl AsFd ,
230
234
event_list : & mut EventVec ,
@@ -254,6 +258,7 @@ pub struct Iter<'a> {
254
258
impl < ' a > Iterator for Iter < ' a > {
255
259
type Item = ( EventFlags , u64 ) ;
256
260
261
+ #[ inline]
257
262
fn next ( & mut self ) -> Option < Self :: Item > {
258
263
self . iter
259
264
. next ( )
0 commit comments