Skip to content

Add support for linux rt schedule functions #2640

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 22 commits into
base: master
Choose a base branch
from

Conversation

alxhill
Copy link

@alxhill alxhill commented May 29, 2025

What does this PR do

Adds lightweight wrappers around setting and getting the scheduler and schedule parameters.

Related: #1260

Checklist:

  • I have read CONTRIBUTING.md
  • I have written necessary tests and rustdoc comments
  • A change log has been added if this PR modifies nix's API

@alxhill
Copy link
Author

alxhill commented Jun 6, 2025

Looks like the tier3 targets are failing due to a new clippy lint:

error: lifetime flowing from input to output with different syntax can be confusing
    --> src/sys/socket/sockopt.rs:1958:17
     |
1958 |     fn new(val: &OsString) -> SetOsString {
     |                 ^^^^^^^^^     ----------- the lifetime gets resolved as `'_`
     |                 |
     |                 this lifetime flows to the output
     |
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
     |
1958 |     fn new(val: &OsString) -> SetOsString<'_> {
     |                                          ++++

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant