r/linux • • Dec 10 '25

Kernel "Rust in the kernel is no longer experimental — it is now a core part of the kernel and is here to stay."

https://lwn.net/Articles/1049831/
1.5k Upvotes

353 comments sorted by

View all comments

Show parent comments

-31

u/PoL0 Dec 10 '25

As long as it's for drivers it doesn't matter. And I assume that they're not stupid to the point of adding

until you need one of those drivers in a platform that doesn't support rust? maybe it's far fetched, no idea

51

u/robin-m Dec 10 '25

Either it’s some kind of of microcontroller that you always cross-compile for, so Rust compiler availability doesn’t matter, just architecture support. Or it doesn’t even make sense. Each driver is made specifically made for a specific hardware. It’s impossible that you have a driver that already exists, but for an architecture that doesn’t support the language the driver was written into. Driver aren’t hardware-independant user code.

20

u/Niautanor Dec 10 '25

Drivers for usb or PCIe devices don't necessarily care what architecture they get compiled for. You can develop a driver for e.g. a usb network adapter on x86 and then use it on another platform.

9

u/robin-m Dec 11 '25

Actual good point. Thanks for correcting me. EDIT: I realize I sound like an LLM. We live in a strange world, when passing the turing test is harder and harder for humans!

3

u/Indolent_Bard Dec 14 '25

Smart people sound like ai, speak dumb and they'll know it's a human.

33

u/the_bighi Dec 10 '25

Won’t happen, you’re trying to complain about a problem that doesn’t exist. The few places where rust isn’t 100% are the places you won’t need a specific niche driver.

-5

u/PoL0 Dec 10 '25

oh not complaining. just parroting what I've read around, and curious about the actual answer. I'm not opposing at all about rust being used in the Linux kernel.

11

u/steveklabnik1 Dec 10 '25

The point is that drivers are inherently platform-specific, so you aren't going to write a driver in a language that doesn't support the platform. That's the actual answer.

16

u/23Link89 Dec 10 '25

Exactly I want my BRAND NEW open source NVIDIA drivers to work on my Xtensa microcontroller. If I can't play Cyberpunk on my micro, IT'S USELESS 😡

2

u/CreatorSiSo Dec 11 '25

I think you'll have to use another microcontroller architecture for this, Rust has Xtensa support. (but even the c part of Linux would compile for most of those microcontrollers, so it doesn't even matter)

-1

u/PoL0 Dec 10 '25

I suppose that's irony?

6

u/ComprehensiveSwitch Dec 10 '25

are you planning on using an Apple GPU on an obscure architecture that no one has ever heard of

0

u/PoL0 Dec 10 '25

not a fan of Apple hardware here, so no. but I'm pretty sure there were more affected architectures.

3

u/nightblackdragon Dec 10 '25

Yeah, those five people running modern Linux on their 30 year old SPARC workstations will be disappointed with Rust poor support for their platform. /s