Skip to content
0:00 / 0:00

#rust#linuxkernel#rustforlinux

LVC21F-317 Rust for Linux

LinaroOrg

5.4K subscribers • 2 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.

Intermediate. Assumes working knowledge.

9.1K views5 years ago2 recommendations

Systems programmingProgramming languagesRustLinuxOperating systems

An introduction to the Rust for Linux project, explaining how Rust support is integrated into the Linux kernel.

The Rust for Linux project is adding support for the Rust language to the Linux kernel. This talk describes the work done so far and also serves as an introduction for other kernel developers interested in using Rust in the kernel. It covers: - A quick introduction of the Rust language within the context of the kernel. - How Rust support works in the kernel: overall infrastructure, compilation model, the standard library (`core` and `alloc`), etc. - How Documentation for Rust code looks like. - Testing Rust code (unit tests and self tests). - Overview of tooling (e.g. compiler as a library, custom linters, Miri, etc.). - Explanation of coding guidelines (e.g. automatic formatting) and policies we follow (e.g. the `SAFETY` comments). - How kernel driver code looks like in Rust.

Why it's here

2 people recommend this

What people say. Recommended for understanding how Rust's safety guarantees apply to kernel development.

Moments people linked to

u/allsey87in r/rust • Recommends

On “[deleted by user]”

For those already familiar with the "why Rust" arguments, it is probably worthwhile skipping forwards to 22:53
5View on Reddit

u/vagelis_prokopiouin r/dotnet • Recommends

On “Web api benchmarking: .NET 6.0 vs Rust (actix-web)”

Check the video. link to this video It will clear things up.

u/vagelis_prokopiouin r/dotnet • Recommends

On “Web api benchmarking: .NET 6.0 vs Rust (actix-web)”

Yes. A memory leak is not unsafe code per se. We are primarily talking about UB. I strongly suggest this video since you are interested link to this video