]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rust: types: add Opaque::try_ffi_init
authorAlice Ryhl <aliceryhl@google.com>
Tue, 1 Oct 2024 08:22:21 +0000 (08:22 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Oct 2024 10:18:29 +0000 (12:18 +0200)
commita69dc41a4211b0da311ae3a3b79dd4497c9dfb60
treeeb7e9f479d07391d8e5732bda730522986a9ffba
parent8cf0b93919e13d1e8d4466eb4080a4c4d9d66d7b
rust: types: add Opaque::try_ffi_init

This will be used by the miscdevice abstractions, as the C function
`misc_register` is fallible.

Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Fiona Behrens <me@kloenk.dev>
Link: https://lore.kernel.org/r/20241001-b4-miscdevice-v2-1-330d760041fa@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
rust/kernel/types.rs