MCPcopy Create free account
hub / github.com/Cisco-Talos/Barbervisor / write

Method write

kernel/src/volatile.rs:112–115  ·  view source on GitHub ↗

Performs a volatile write, setting the contained value to the given value `value`. Volatile writes are guaranteed to not be optimized away by the compiler, but by themselves do not have atomic ordering guarantees. To also get atomicity, consider looking at the `Atomic` wrapper type. ```rust use volatile::Volatile; let mut value = Volatile::new(0u32); value.write(42u32); assert_eq!(value.read()

(&mut self, value: T)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

updateMethod · 0.45
test_writeFunction · 0.45
test_pointer_recastFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_writeFunction · 0.36
test_pointer_recastFunction · 0.36