13–15 Sept 2021
LPC Virtual
US/Mountain timezone

Invited talk: Implementing the Iterator trait for seq_file

14 Sept 2021, 11:45
30m
Refereed Track/Virtual-Room (LPC Virtual)

Refereed Track/Virtual-Room

LPC Virtual

150

Speaker

Adam Bratschi-Kaye

Description

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.