summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2026-07-29 16:38:45 +0100
committerGary Guo <gary@garyguo.net>2026-08-05 11:36:16 +0100
commitd5492db2bf30b7e617e41d4fe3dba22475a1a354 (patch)
treeac19cafedb0b44eef3be84b57025318cdf87ca21 /rust/kernel
parent91665820d9bf511e0c3fdf3edb464ba23130dafe (diff)
rust: pin-init: add `raw_init` and `raw_try_init` and recommend over `__init`
The `__init` method is not designed to be a public API (existence of "__" is a hint for this); but currently there is no other API that allows raw initialization on pointers. Add `raw_init` and `raw_try_init` and recommend people to use this instead if raw pointer initialization is needed. Link: https://patch.msgid.link/20260729-merge-init-v2-3-26adf47109e7@garyguo.net [ Renamed from `ptr_[try_]init` to `raw_[try_]init`. - Gary ] Reviewed-by: Benno Lossin <lossin@kernel.org> Signed-off-by: Gary Guo <gary@garyguo.net>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions