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 c4eeb30
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 @@ -412,6 +412,8 @@ SOL_RAW
SOL_RDS
SOL_RXRPC
SOL_XDP
SO_BUSY_POLL_BUDGET
SO_PREFER_BUSY_POLL
STATX_ALL
STATX_ATIME
STATX_ATTR_APPEND
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 c4eeb30

Please sign in to comment.