@@ -160,6 +160,7 @@ pub fn epoll_create(flags: CreateFlags) -> io::Result<OwnedFd> {
160160/// is an `Arc<dyn SystemResource>`, then `epoll` can be thought to maintain
161161/// a `Weak<dyn SystemResource>` to the file descriptor.
162162#[ doc( alias = "epoll_ctl" ) ]
163+ #[ inline]
163164pub fn epoll_add (
164165 epoll : impl AsFd ,
165166 source : impl AsFd ,
@@ -185,6 +186,7 @@ pub fn epoll_add(
185186///
186187/// This sets the events of interest with `target` to `events`.
187188#[ doc( alias = "epoll_ctl" ) ]
189+ #[ inline]
188190pub fn epoll_mod (
189191 epoll : impl AsFd ,
190192 source : impl AsFd ,
@@ -211,6 +213,7 @@ pub fn epoll_mod(
211213///
212214/// This also returns the owning `Data`.
213215#[ doc( alias = "epoll_ctl" ) ]
216+ #[ inline]
214217pub fn epoll_del ( epoll : impl AsFd , source : impl AsFd ) -> io:: Result < ( ) > {
215218 // SAFETY: We're calling `epoll_ctl` via FFI and we know how it
216219 // behaves.
@@ -225,6 +228,7 @@ pub fn epoll_del(epoll: impl AsFd, source: impl AsFd) -> io::Result<()> {
225228///
226229/// For each event of interest, an element is written to `events`. On
227230/// success, this returns the number of written elements.
231+ #[ inline]
228232pub fn epoll_wait (
229233 epoll : impl AsFd ,
230234 event_list : & mut EventVec ,
@@ -254,6 +258,7 @@ pub struct Iter<'a> {
254258impl < ' a > Iterator for Iter < ' a > {
255259 type Item = ( EventFlags , u64 ) ;
256260
261+ #[ inline]
257262 fn next ( & mut self ) -> Option < Self :: Item > {
258263 self . iter
259264 . next ( )
0 commit comments