]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: debugfs: Use kernel Atomic type in docs example
authorFUJITA Tomonori <fujita.tomonori@gmail.com>
Wed, 3 Dec 2025 00:04:11 +0000 (09:04 +0900)
committerDanilo Krummrich <dakr@kernel.org>
Mon, 19 Jan 2026 14:02:46 +0000 (15:02 +0100)
commit744905705113a6ab4c38127f18cc0d71594cfaec
tree1c0cd1e17bc0dac74b0bc1c4fc635dea50aa69c4
parent61f5ec54c8a64c8b2d035215294389dd021318c7
rust: debugfs: Use kernel Atomic type in docs example

Switch the read_callback_file() documentation example from
core::sync::atomic::AtomicU32 to the kernel's Atomic because Rust
native atomics are not allowed to use in kernel.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Reviewed-by: Boqun Feng <boqun.feng@gmail.com>
Link: https://patch.msgid.link/20251203000411.30434-1-fujita.tomonori@gmail.com
[ Use kernel vertical import style. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/debugfs.rs