Skip to content

Commit bc63db7

Browse files
Erik Schillingstefano-garzarella
authored andcommitted
vhost-user-backend: fix docs for exit_event
The function used to return a tuple, but no longer does that. Fixes: e8beb23 ("epoll: refine the way to manage event id") Signed-off-by: Erik Schilling <[email protected]>
1 parent f29830a commit bc63db7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

crates/vhost-user-backend/src/backend.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,8 @@ where
9393

9494
/// Provide an optional exit EventFd for the specified worker thread.
9595
///
96-
/// If an (`EventFd`, `token`) pair is returned, the returned `EventFd` will be monitored for IO
97-
/// events by using epoll with the specified `token`. When the returned EventFd is written to,
98-
/// the worker thread will exit.
96+
/// The returned `EventFd` will be monitored for IO events. When the
97+
/// returned EventFd is written to, the worker thread will exit.
9998
fn exit_event(&self, _thread_index: usize) -> Option<EventFd> {
10099
None
101100
}

0 commit comments

Comments
 (0)