rust: add `kernel` crate
maillist inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I5J75G CVE: NA Reference: https://lore.kernel.org/rust-for-linux/CANiq72nDcJLSB3pLhkdqGdLitfmqqCUVVfkY5EjP9AcwVv9B4A@mail.gmail.com/T/#t -------------------------------- The `kernel` crate currently includes all the abstractions that wrap kernel features written in C. These abstractions call the C side of the kernel via the generated bindings with the `bindgen` tool. Modules developed in Rust should never call the bindings themselves. In the future, as the abstractions grow in number, we may need to split this crate into several, possibly following a similar subdivision in subsystems as the kernel itself and/or moving the code to the actual subsystems. Co-developed-by: NAlex Gaynor <alex.gaynor@gmail.com> Signed-off-by: NAlex Gaynor <alex.gaynor@gmail.com> Co-developed-by: NGeoffrey Thomas <geofft@ldpreload.com> Signed-off-by: NGeoffrey Thomas <geofft@ldpreload.com> Co-developed-by: NFinn Behrens <me@kloenk.de> Signed-off-by: NFinn Behrens <me@kloenk.de> Co-developed-by: NAdam Bratschi-Kaye <ark.email@gmail.com> Signed-off-by: NAdam Bratschi-Kaye <ark.email@gmail.com> Co-developed-by: NMichael Ellerman <mpe@ellerman.id.au> Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au> Co-developed-by: NSumera Priyadarsini <sylphrenadin@gmail.com> Signed-off-by: NSumera Priyadarsini <sylphrenadin@gmail.com> Co-developed-by: NSven Van Asbroeck <thesven73@gmail.com> Signed-off-by: NSven Van Asbroeck <thesven73@gmail.com> Co-developed-by: NGary Guo <gary@garyguo.net> Signed-off-by: NGary Guo <gary@garyguo.net> Co-developed-by: NBoris-Chengbiao Zhou <bobo1239@web.de> Signed-off-by: NBoris-Chengbiao Zhou <bobo1239@web.de> Co-developed-by: NBoqun Feng <boqun.feng@gmail.com> Signed-off-by: NBoqun Feng <boqun.feng@gmail.com> Co-developed-by: NFox Chen <foxhlchen@gmail.com> Signed-off-by: NFox Chen <foxhlchen@gmail.com> Co-developed-by: NDan Robertson <daniel.robertson@starlab.io> Signed-off-by: NDan Robertson <daniel.robertson@starlab.io> Co-developed-by: NViktor Garske <viktor@v-gar.de> Signed-off-by: NViktor Garske <viktor@v-gar.de> Co-developed-by: NDariusz Sosnowski <dsosnowski@dsosnowski.pl> Signed-off-by: NDariusz Sosnowski <dsosnowski@dsosnowski.pl> Co-developed-by: NLéo Lanteri Thauvin <leseulartichaut@gmail.com> Signed-off-by: NLéo Lanteri Thauvin <leseulartichaut@gmail.com> Co-developed-by: NNiklas Mohrin <dev@niklasmohrin.de> Signed-off-by: NNiklas Mohrin <dev@niklasmohrin.de> Co-developed-by: NGioh Kim <gurugio@gmail.com> Signed-off-by: NGioh Kim <gurugio@gmail.com> Co-developed-by: NDaniel Xu <dxu@dxuuu.xyz> Signed-off-by: NDaniel Xu <dxu@dxuuu.xyz> Co-developed-by: NMilan Landaverde <milan@mdaverde.com> Signed-off-by: NMilan Landaverde <milan@mdaverde.com> Co-developed-by: NMorgan Bartlett <mjmouse9999@gmail.com> Signed-off-by: NMorgan Bartlett <mjmouse9999@gmail.com> Co-developed-by: NMaciej Falkowski <m.falkowski@samsung.com> Signed-off-by: NMaciej Falkowski <m.falkowski@samsung.com> Co-developed-by: NJiapeng Chong <jiapeng.chong@linux.alibaba.com> Signed-off-by: NJiapeng Chong <jiapeng.chong@linux.alibaba.com> Co-developed-by: NNándor István Krácser <bonifaido@gmail.com> Signed-off-by: NNándor István Krácser <bonifaido@gmail.com> Co-developed-by: NDavid Gow <davidgow@google.com> Signed-off-by: NDavid Gow <davidgow@google.com> Signed-off-by: NWedson Almeida Filho <wedsonaf@google.com> Co-developed-by: NMiguel Ojeda <ojeda@kernel.org> Signed-off-by: NMiguel Ojeda <ojeda@kernel.org> Signed-off-by: NWeilong Chen <chenweilong@huawei.com>
Showing
rust/kernel/allocator.rs
0 → 100644
rust/kernel/amba.rs
0 → 100644
rust/kernel/bindings.rs
0 → 100644
rust/kernel/bindings_helper.h
0 → 100644
rust/kernel/build_assert.rs
0 → 100644
rust/kernel/c_types.rs
0 → 100644
rust/kernel/chrdev.rs
0 → 100644
rust/kernel/clk.rs
0 → 100644
rust/kernel/cred.rs
0 → 100644
rust/kernel/device.rs
0 → 100644
rust/kernel/driver.rs
0 → 100644
rust/kernel/error.rs
0 → 100644
rust/kernel/file.rs
0 → 100644
此差异已折叠。
rust/kernel/gpio.rs
0 → 100644
rust/kernel/hwrng.rs
0 → 100644
rust/kernel/io_buffer.rs
0 → 100644
rust/kernel/io_mem.rs
0 → 100644
rust/kernel/iov_iter.rs
0 → 100644
rust/kernel/irq.rs
0 → 100644
此差异已折叠。
rust/kernel/kasync.rs
0 → 100644
rust/kernel/kasync/net.rs
0 → 100644
rust/kernel/kunit.rs
0 → 100644
此差异已折叠。
rust/kernel/lib.rs
0 → 100644
此差异已折叠。
rust/kernel/linked_list.rs
0 → 100644
此差异已折叠。
rust/kernel/miscdev.rs
0 → 100644
此差异已折叠。
rust/kernel/mm.rs
0 → 100644
此差异已折叠。
rust/kernel/module_param.rs
0 → 100644
此差异已折叠。
rust/kernel/net.rs
0 → 100644
此差异已折叠。
rust/kernel/net/filter.rs
0 → 100644
此差异已折叠。
rust/kernel/of.rs
0 → 100644
rust/kernel/pages.rs
0 → 100644
此差异已折叠。
rust/kernel/platform.rs
0 → 100644
此差异已折叠。
rust/kernel/power.rs
0 → 100644
此差异已折叠。
rust/kernel/prelude.rs
0 → 100644
此差异已折叠。
rust/kernel/print.rs
0 → 100644
此差异已折叠。
rust/kernel/random.rs
0 → 100644
此差异已折叠。
rust/kernel/raw_list.rs
0 → 100644
此差异已折叠。
rust/kernel/rbtree.rs
0 → 100644
此差异已折叠。
rust/kernel/revocable.rs
0 → 100644
此差异已折叠。
rust/kernel/security.rs
0 → 100644
此差异已折叠。
rust/kernel/static_assert.rs
0 → 100644
此差异已折叠。
rust/kernel/std_vendor.rs
0 → 100644
此差异已折叠。
rust/kernel/str.rs
0 → 100644
此差异已折叠。
rust/kernel/sysctl.rs
0 → 100644
此差异已折叠。
rust/kernel/task.rs
0 → 100644
此差异已折叠。
rust/kernel/types.rs
0 → 100644
此差异已折叠。
rust/kernel/user_ptr.rs
0 → 100644
此差异已折叠。
想要评论请 注册 或 登录