Docs.rs
zenith-linux-0.1.0
zenith-linux 0.1.0
Docs.rs crate page
MIT
OR
Apache-2.0
08 August 2026
Links
Homepage
Repository
crates.io
Source
Owners
mcdn-git
Dependencies
thiserror ^1
normal
tracing ^0.1
normal
zenith-foundation ^0.1.0
normal
pretty_assertions ^1
dev
io-uring ^0.7
normal
optional
libc ^0.2
normal
Versions
100%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
set_thread_affinity_range
zenith_
linux
0.1.0
set_
thread_
affinity_
range
Sections
Arguments
In zenith_
linux::
affinity
zenith_linux
::
affinity
Function
set_
thread_
affinity_
range
Copy item path
Source
pub fn set_thread_affinity_range(cpus: &[
usize
]) ->
Result
<
()
,
AffinityError
>
Expand description
将当前线程绑定到一组 CPU 核心
§
Arguments
cpus
- 目标 CPU 编号切片(至少 1 个)