Zack's Kernel News

Zack's Kernel News

Article from Issue 301/2025
Author(s):

Chronicler Zack Brown reports on porting drivers to Rust, and empowering debuggers.

Porting Drivers to Rust

Daniel Almeida submitted Tyr, a Rust port of the Panthor driver, done as a collaboration between his own employer Collabora, along with ARM and Google. The Panthor driver, written in C, gives support for ARM's Mali series of graphics processing units (GPUs), which have become so all-important in artificial intelligence development and the fate of the universe. The Tyr port of Panthor, by Daniel and others, was an effort to migrate the driver to Rust. As Daniel put it, "The name 'Tyr' is inspired by Norse mythology, reflecting ARM's tradition of naming their GPUs after Nordic mythological figures and places."

The transformation of the Linux kernel from the C language to Rust is a long-term ongoing project. I personally don't know if the actual goal is to replace all C code with Rust in the kernel – maybe the kernel developers themselves don't know. But Rust's natural safety features that avoid various types of memory errors have made it one of a tiny set of languages welcomed by Linus Torvalds into the Linux kernel. For example, a likely candidate would be C++, seemingly the natural successor of C, and there was at one time a strong push by developers to let C++ into the kernel. However, Linus has always resisted accepting such patches. Now, suddenly Rust appears and is welcomed like a long-lost child.

There were immediately many technical responses to Daniel's submission, but nothing controversial. Rust's status in the kernel was recently highly contentious, because some maintainers simply refused to accept Rust patches at all. Linus finally made his policy clear: Maintainers are not required to accept Rust patches themselves … but then they also have no say in which Rust patches go into the kernel. Since then, the Rust floodgates have definitely opened.

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Kernel News

    This month in Kernel News: Shared Processes with Hyper-Threading; Cleaning Up printk(); and Rust in the Kernel.

  • Rust in the Kernel

    A major step for the Linux kernel's long-term security and reliability is the introduction of Rust as a potential development language. We'll show you how to set up your Linux system to support Rust programming.

  • Kernel News

    Chronicler Zack Brown reports on the latest news, views, dilemmas, and developments within the Linux kernel community.

  • Understanding Ext

    The ext filesystem celebrates its 25th birthday next year. A brief tour of ext history will give you some insights into how this classic Linux filesystem works – and how it has evolved to meet users' needs.

  • Ask Klaus!
comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News