rustix icon indicating copy to clipboard operation
rustix copied to clipboard

WIP: Add support for `mbind`, `get_mempolicy` and `set_mempolicy`

Open krh opened this issue 1 year ago • 4 comments

This adds support for the mbind, set_mempolicy and get_mempolicy NUMA syscalls. The get_mempolicy syscall has a few different modes of operation, depending on the flags, which is demultiplexed into get_mempolicy_node and get_mempolicy_next_node for now. There's a couple of other modes that writes into the variable length bit array, which aren't implemented for now.

krh avatar Nov 20 '23 15:11 krh

Pushed a new version: removed the emacs backup files, fixed cargo fmt and warnings about unused imports. Remaining errors look like they're all from missing the new symbols in linux-raw-sys.

krh avatar Nov 29 '23 21:11 krh

This one: https://github.com/sunfishcode/linux-raw-sys/pull/96

krh avatar Nov 29 '23 21:11 krh

If you'd like this PR to be included in the rustix 0.38 series, please use linux-raw-sys 0.4.x. I've now released 0.4.12 with https://github.com/sunfishcode/linux-raw-sys/pull/96. Another option is to open this PR in the 1.0-staging branch.

sunfishcode avatar Nov 30 '23 22:11 sunfishcode

If you'd like this PR to be included in the rustix 0.38 series, please use linux-raw-sys 0.4.x. I've now released 0.4.12 with sunfishcode/linux-raw-sys#96. Another option is to open this PR in the 1.0-staging branch.

Oh, ok, thanks, I'll target 0.4.12 then.

krh avatar Nov 30 '23 22:11 krh