Skip to content

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

@alxhill
Copy link
Author

alxhill commented Jul 1, 2025

@SteveLauC are you able / interested in taking a look here?

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