aboutsummaryrefslogtreecommitdiff
path: root/rust/kernel/error.rs
diff options
context:
space:
mode:
authorBenno Lossin <[email protected]>2024-07-30 18:23:04 +0000
committerMiguel Ojeda <[email protected]>2024-08-18 23:10:53 +0200
commit7adcdd572248591c3932e27d98b4a086662d5cbe (patch)
tree10d251f98c7c4514729bcb0e796c6addcafee712 /rust/kernel/error.rs
parent6c2d0ad53b8ff25cb1a12570191576d834e9108d (diff)
rust: types: improve `ForeignOwnable` documentation
There are no guarantees for the pointer returned by `into_foreign`. This is simply because there is no safety documentation stating any guarantees. Therefore dereferencing and all other operations for that pointer are not allowed in a general context (i.e. when the concrete type implementing the trait is not known). This might be confusing, therefore add normal documentation to state that there are no guarantees given for the pointer. Signed-off-by: Benno Lossin <[email protected]> Reviewed-by: Alice Ryhl <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/kernel/error.rs')
0 files changed, 0 insertions, 0 deletions