MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / write

Method write

src/vol.rs:92–101  ·  view source on GitHub ↗

Volatile write, sets value to specified value:

(&mut self, value: T)

Source from the content-addressed store, hash-verified

90
91 // Volatile write, sets value to specified value:
92 pub fn write(&mut self, value: T)
93 where
94 A: CanWrite,
95 R: DerefMut,
96 {
97 unsafe
98 {
99 ptr::write_volatile(&mut *self.reference, value)
100 };
101 }
102
103 // Use specified closure and volatile instruction(s) to update contained value:
104 pub fn update<F>(&mut self, f: F)

Callers 10

exitqemuFunction · 0.45
set_pitfreq_divFunction · 0.45
updateMethod · 0.45
enable_intrMethod · 0.45
set_periodintr_rateMethod · 0.45
updatingMethod · 0.45
readregMethod · 0.45
notify_intrendMethod · 0.45
enablenmiMethod · 0.45
disablenmiMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected