All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Understanding Rust Kernel Interfaces: Overview of Essential Bindings

By

chmaynard

10mo ago· 10 min readen

Summary

The article discusses the interfaces between C and Rust in the kernel, focusing on the bindings that all kernel Rust code can be expected to use. It explains tasks like memory allocation, dealing with immovable structures, and interacting with locks in Rust drivers.

Key quotes

· 3 pulled
Tasks like allocating memory, dealing with immovable structures, and interacting with locks are necessary for handling most devices.
Rust code can call C using the foreign function interface (FFI); given that, one potential way to integrate Rust int
The focus of this third item in our series on writing Rust in the kernel will be on an overview of the bindings that all kernel Rust code can be expected to use.
Snippet from the RSS feed
The interfaces between C and Rust in the kernel have grown over time; any non-trivial Rust dri [...]

You might also wanna read