Skip to content

Add support for linux rt schedule functions #2640

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 27 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<'_> {
     |                                          ++++

@alxhill
Copy link
Author

alxhill commented Jun 20, 2025

@asomers are you the right person to request review for this PR? have been using it successfully in a private repo, seems to work as expected on PREEMPT_RT

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

Successfully merging this pull request may close these issues.

1 participant