https://github.com/rust-osdev/mem-barrier
Cross-architecture, no-std memory barriers.
https://github.com/rust-osdev/mem-barrier
dsb fence mb memory-barriers mfence rust
Last synced: about 2 months ago
JSON representation
Cross-architecture, no-std memory barriers.
- Host: GitHub
- URL: https://github.com/rust-osdev/mem-barrier
- Owner: rust-osdev
- License: apache-2.0
- Created: 2025-12-02T17:58:45.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-12-02T18:05:28.000Z (2 months ago)
- Last Synced: 2025-12-05T14:40:42.064Z (about 2 months ago)
- Topics: dsb, fence, mb, memory-barriers, mfence, rust
- Language: Rust
- Homepage: https://crates.io/crates/mem-barrier
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# mem-barrier
[](https://crates.io/crates/mem-barrier)
[](https://docs.rs/mem-barrier)
[](https://github.com/rust-osdev/mem-barrier/actions/workflows/ci.yml)
This crate provides cross-architecture, no-std memory barriers.
For API documentation, see the [docs].
[docs]: https://docs.rs/mem-barrier
## Examples
```rust
use mem_barrier::{mem_barrier, BarrierKind, BarrierType};
mem_barrier(BarrierKind::Mmio, BarrierType::General);
```
## License
Licensed under either of
- Apache License, Version 2.0
([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license
([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
at your option.
### Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
dual licensed as above, without any additional terms or conditions.