-
- Downloads
rust: use custom FFI integer types
Currently FFI integer types are defined in libcore. This commit creates the `ffi` crate and asks bindgen to use that crate for FFI integer types instead of `core::ffi`. This commit is preparatory and no type changes are made in this commit yet. Signed-off-by:Gary Guo <gary@garyguo.net> Link: https://lore.kernel.org/r/20240913213041.395655-4-gary@garyguo.net [ Added `rustdoc`, `rusttest` and KUnit tests support. Rebased on top of `rust-next` (e.g. migrated more `core::ffi` cases). Reworded crate docs slightly and formatted. - Miguel ] Signed-off-by:
Miguel Ojeda <ojeda@kernel.org>
Showing
- rust/Makefile 26 additions, 13 deletionsrust/Makefile
- rust/ffi.rs 13 additions, 0 deletionsrust/ffi.rs
- rust/kernel/alloc/allocator.rs 1 addition, 1 deletionrust/kernel/alloc/allocator.rs
- rust/kernel/alloc/allocator_test.rs 2 additions, 2 deletionsrust/kernel/alloc/allocator_test.rs
- rust/kernel/alloc/kbox.rs 6 additions, 6 deletionsrust/kernel/alloc/kbox.rs
- rust/kernel/block/mq/operations.rs 9 additions, 9 deletionsrust/kernel/block/mq/operations.rs
- rust/kernel/block/mq/raw_writer.rs 1 addition, 1 deletionrust/kernel/block/mq/raw_writer.rs
- rust/kernel/block/mq/tag_set.rs 1 addition, 1 deletionrust/kernel/block/mq/tag_set.rs
- rust/kernel/error.rs 10 additions, 10 deletionsrust/kernel/error.rs
- rust/kernel/init.rs 1 addition, 1 deletionrust/kernel/init.rs
- rust/kernel/lib.rs 2 additions, 0 deletionsrust/kernel/lib.rs
- rust/kernel/net/phy.rs 8 additions, 8 deletionsrust/kernel/net/phy.rs
- rust/kernel/str.rs 2 additions, 2 deletionsrust/kernel/str.rs
- rust/kernel/sync/arc.rs 3 additions, 3 deletionsrust/kernel/sync/arc.rs
- rust/kernel/sync/condvar.rs 1 addition, 1 deletionrust/kernel/sync/condvar.rs
- rust/kernel/sync/lock.rs 1 addition, 1 deletionrust/kernel/sync/lock.rs
- rust/kernel/sync/lock/mutex.rs 1 addition, 1 deletionrust/kernel/sync/lock/mutex.rs
- rust/kernel/sync/lock/spinlock.rs 1 addition, 1 deletionrust/kernel/sync/lock/spinlock.rs
- rust/kernel/task.rs 2 additions, 6 deletionsrust/kernel/task.rs
- rust/kernel/time.rs 2 additions, 2 deletionsrust/kernel/time.rs
Loading
Please register or sign in to comment