Skip to content
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

Implement sched_getaffinity #80

Closed
sunfishcode opened this issue Oct 11, 2021 · 0 comments · Fixed by #85
Closed

Implement sched_getaffinity #80

sunfishcode opened this issue Oct 11, 2021 · 0 comments · Fixed by #85

Comments

@sunfishcode
Copy link
Member

sched_getaffinity is used in the num_cpus crate, as well as the available_concurrency feature in Rust nightly. This will help with Mustang, as reported here.

The first step is to create a struct which wraps a cpu_set_t and provides these operations as methods.

Once that's defined, sched_getaffinity should be similar to other system calls.

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 a pull request may close this issue.

1 participant