Skip to content

Commit

Permalink
Update Ring::new docs
Browse files Browse the repository at this point in the history
Document that the kernel thread, SQPOLL, can be disabled.
  • Loading branch information
Thomasdezeeuw committed Jul 21, 2024
1 parent fbc6d84 commit 39cf63b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,10 @@ impl Ring {
///
/// # Notes
///
/// A10 always uses `IORING_SETUP_SQPOLL`, which required Linux kernel 5.11
/// to work correctly. Furthermore before Linux 5.13 the user needs the
/// `CAP_SYS_NICE` capability if run as non-root.
/// A10 uses `IORING_SETUP_SQPOLL` by default, which required Linux kernel
/// 5.11 to work correctly. Furthermore before Linux 5.13 the user needs the
/// `CAP_SYS_NICE` capability if run as non-root. This can be disabled by
/// [`Config::with_kernel_thread`].
pub const fn config<'r>(entries: u32) -> Config<'r> {
Config::new(entries)
}
Expand Down

0 comments on commit 39cf63b

Please sign in to comment.