docs

bare::volatile

API 참조는 영어로만 있습니다. 표준 라이브러리 소스의 영어 문서 주석에서 만듭니다.

accesses the optimizer keeps exactly as written: MMIO, signal flags, DMA buffers. Not atomic.

Functions

readSource

pub unsafe fn read<T>(src: ConstPtr<T>) -> T

The T at src, read exactly once as written. UB unless it points at a live, initialized T.

writeSource

pub unsafe fn write<T>(dst: Ptr<T>, value: T)

Store value at dst, written exactly once as written. UB unless dst is writable T memory.