Filho 表示微软为履行在 Linux 生态中推动 Rust 发展的承诺,通过发布新的补丁,来完善 Rust 内核代码的分配应用程序接口(Allocation API),并引入了 Rust 内核模块的就地模块初始化(in-place module initialization)。Linux 内核中的模块初始化此前需要返回一个实例,并将其移动到指定的内存空间。而在部署该新补丁...
IT之家 4 月 2 日消息,微软工程师 Wedson Almeida Filho 近日发布邮件,通过和 Rust for Linux 项目密切合作,已经发布新的补丁来彻底改变内核中的模块初始化。 图源:Windows Report AI 生成 Filho 表示微软为履行在 Linux 生态中推动 Rust 发展的承诺,通过发布新的补丁,来完善 Rust 内核代码的分配应用程序接口(A...
在linux-kernel-module-rust 项目中,进入用户空间的指针被 wrap 成 UserSlicePtr 类型,这确保了 copy_to_user()或 copy_from_user()的可以正确使用。这个 wrapper 在 Rust 代码中提供了一定程度的安全性功能(因为这类指针不能直接 dereference),同时也使 Rust 代码更加地道。要想写入用户空间指针的话,代码看起来...
The kernel modules are built using nix. You can build them manually withnix build .#helloworldandnix build .#rustOutOfTree. They are copied into the initramfs for you. There is abuildCModuleandbuildRustModulefunction exposed for building your own modules (build/rust-module.nixandbuild/c-modul...
链接: https://fosstodon.org/@kernellogger/111741507899977461 GitHub: https://github.com/torvalds/linux/blob/master/drivers/net/phy/ax88796b_rust.rs [new lib] rs-measures 一个Rust 宏库,用于将数字静态封装在具有度量单位的对象中。 动机:使用原始的 Rust 数据类型来存储物理或几何量的值,可能会出现...
Rust ASIX PHY驱动大约135行Rust代码加上各种构建系统位。可以使用Kconfig的“AX88796B_RUST_PHY”选项启用此Rust ASIX PHY驱动程序。AX88796B 驱动程序用于支持X-Surf 100 AX88796B封装中的Asix Electronics PHY。AX88796B是一款100M快速以太网控制器,适用于从HVAC控制到安全系统和其他工业控制系统的嵌入式和工业...
微软贡献模块初始化补丁:推动 Linux Kernel 集成 Rust IT之家4 月 2 日消息,微软工程师 Wedson Almeida Filho 近日发布邮件,通过和 Rust for Linux 项目密切合作,已经发布新的补丁来彻底改变内核中的模块初始化。 图源:Windows Report AI 生成 Filho 表示微软为履行在 Linux 生态中推动 Rust 发展的承诺,通过发布...
Filho 表示微软为履行在 Linux 生态中推动 Rust 发展的承诺,通过发布新的补丁,来完善 Rust 内核代码的分配应用程序接口(Allocation API),并引入了 Rust 内核模块的就地模块初始化(in-place module initialization)。 Linux 内核中的模块初始化此前需要返回一个实例,并将其移动到指定的内存空间。
Each kernel module in Rust lives in a staticlib crate, which generates a .a file. We pass this object to the Linux kernel's own module build system for linking into a .ko. The kernel is inherently multi-threaded: kernel resources can be accessed from multiple userspace processes at once...
IT之家 5 月 1 日消息,科技媒体 linuxiac 今天(5 月 1 日)发布博文,报道称 openSUSE Leap 16 Beta 版现已发布,该发行版基于 SUSE Linux Enterprise 16 和 SUSE Linux Framework One(原名 ALP),搭载 Kernel 6.12,最终稳定版预计于 10 月中旬推出。