We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
rust_fmt_argument
1 parent 68821be commit f82aef7Copy full SHA for f82aef7
rust/kernel/print.rs
@@ -12,7 +12,12 @@ use core::fmt;
12
use crate::bindings;
13
use crate::c_types::{c_char, c_void};
14
15
-// Called from `vsprintf` with format specifier `%pA`.
+/// Called from `vsprintf` with format specifier `%pA`.
16
+///
17
+/// # Safety
18
19
+/// The region between `buf` and `end` must be valid for writes.
20
+/// `ptr` must point to a valid instance of `fmt::Arguments`.
21
#[no_mangle]
22
unsafe fn rust_fmt_argument(buf: *mut c_char, end: *mut c_char, ptr: *const c_void) -> *mut c_char {
23
use fmt::Write;
0 commit comments