Skip to content

Commit

Permalink
Add SO_PREFER_BUSY_POLL and SO_BUSY_POLL_BUDGET
Browse files Browse the repository at this point in the history
Remove the comment of these socket options.
Reference: https://elixir.bootlin.com/linux/latest/source/include/uapi/asm-generic/socket.h

Signed-off-by: Pedro Tammela <[email protected]>
  • Loading branch information
tammela committed Nov 26, 2024
1 parent 0a8f04a commit 8871da8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions libc-test/semver/linux-gnu.txt
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,8 @@ SELINUX_MAGIC
SIGEV_THREAD_ID
SMACK_MAGIC
SMB_SUPER_MAGIC
SO_BUSY_POLL_BUDGET
SO_PREFER_BUSY_POLL
SOL_CAIF
SOL_IUCV
SOL_NFC
Expand Down
4 changes: 2 additions & 2 deletions src/unix/linux_like/linux/arch/generic/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ cfg_if! {
pub const SO_DETACH_REUSEPORT_BPF: ::c_int = 68;
}
}
// pub const SO_PREFER_BUSY_POLL: ::c_int = 69;
// pub const SO_BUSY_POLL_BUDGET: ::c_int = 70;
pub const SO_PREFER_BUSY_POLL: ::c_int = 69;
pub const SO_BUSY_POLL_BUDGET: ::c_int = 70;

cfg_if! {
if #[cfg(any(
Expand Down

0 comments on commit 8871da8

Please sign in to comment.