mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2026-01-27 12:47:24 +01:00
rust: alloc: add missing Markdown code spans
Add missing Markdown code spans.
This was found using the Clippy `doc_markdown` lint, which we may want
to enable.
Fixes: b6a006e21b ("rust: alloc: introduce allocation flags")
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Link: https://lore.kernel.org/r/20250324210359.1199574-4-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
This commit is contained in:
parent
9f04763683
commit
673ec360cf
|
|
@ -94,10 +94,10 @@ pub mod flags {
|
|||
///
|
||||
/// A lower watermark is applied to allow access to "atomic reserves". The current
|
||||
/// implementation doesn't support NMI and few other strict non-preemptive contexts (e.g.
|
||||
/// raw_spin_lock). The same applies to [`GFP_NOWAIT`].
|
||||
/// `raw_spin_lock`). The same applies to [`GFP_NOWAIT`].
|
||||
pub const GFP_ATOMIC: Flags = Flags(bindings::GFP_ATOMIC);
|
||||
|
||||
/// Typical for kernel-internal allocations. The caller requires ZONE_NORMAL or a lower zone
|
||||
/// Typical for kernel-internal allocations. The caller requires `ZONE_NORMAL` or a lower zone
|
||||
/// for direct access but can direct reclaim.
|
||||
pub const GFP_KERNEL: Flags = Flags(bindings::GFP_KERNEL);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user