11–13 Dec 2025
Asia/Tokyo timezone

Initialization in Rust with pin-init

12 Dec 2025, 11:00
20m
"Hall B3 (63)" (Toranomon Hills Mori Tower)

"Hall B3 (63)"

Toranomon Hills Mori Tower

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.

This talk will explain how to use pin-init. It will go into two perspectives: first a consumer of an API that uses pin-init and second as the creator of such an API.

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

There are no materials yet.