11–13 Dec 2025
Asia/Tokyo timezone

Initialization in Rust with pin-init

12 Dec 2025, 10:40
20m
"Hall B3/B4" (Toranomon Hills Mori Tower)

"Hall B3/B4"

Toranomon Hills Mori Tower

90
Rust MC Rust MC

Speaker

Benno Lossin

Description

Rust in the Linux kernel uses the pin-init library for initialization. This library handles ergonomic and safe initialization of address-sensitive types such as Mutex<T> (the abstraction of struct mutex).

Since address sensitivity is an inherited property (a type containing an address-sensitive type also becomes one), lots of types require using the pin-init API to initialize them. Thus knowing how to use pin-init is required in order to write Rust code in the kernel.

The talk is based on a chapter in the upcoming "Rust in the Linux Kernel" book and feedback is greatly appreciated.

Primary author

Presentation materials