diff options
| author | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2025-11-17 09:24:51 +0900 |
|---|---|---|
| committer | Miguel Ojeda <ojeda@kernel.org> | 2026-01-30 05:18:17 +0100 |
| commit | e600425708148e952adce496ac9e9def79264c8a (patch) | |
| tree | 5a4bcd6896aa285d6d92c17323267003a42b38d2 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git | |
| parent | 966f79ce6f6b3d138b69cacc3cdcbb5001141b4d (diff) | |
rust: print: Add support for calling a function exactly once
Add the Rust equivalent of the kernel's `DO_ONCE_LITE` macro. While it
would be possible to implement the feature entirely as a Rust macro,
the functionality that can be implemented as regular functions has
been extracted and implemented as the `OnceLite` struct for better
code maintainability.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20251117002452.4068692-2-fujita.tomonori@gmail.com
[ Added prefix to title. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
