Sep 13 – 15, 2021
LPC Virtual
US/Mountain timezone

Invited talk: Implementing the Iterator trait for seq_file

Sep 14, 2021, 11:45 AM
Refereed Track/Virtual-Room (LPC Virtual)

Refereed Track/Virtual-Room

LPC Virtual



Adam Bratschi-Kaye


The seq_file interface in the kernel allows easy creation of virtual files by implementing an interface that iterates over values which can be printed. It seemed like this should directly translate into the Rust trait of an Iterator where Item implements Display, but of course the devil is in the details. I'll show what I did to provide an interface to seq_file for Rust code.

Presentation materials

There are no materials yet.