|
|
Log in / Subscribe / Register

Rust in the 6.2 kernel

Rust in the 6.2 kernel

Posted Nov 18, 2022 13:15 UTC (Fri) by walters (subscriber, #7396)
In reply to: Rust in the 6.2 kernel by rillian
Parent article: Rust in the 6.2 kernel

> In C it's all the same thing, of course.

Not quite; without a capacity value from a standard NUL terminated string, one can't do some useful patterns like having a single allocated "buffer" used in a loop without allocating/freeing. The equivalent of Rust's String is really things like https://developer-old.gnome.org/glib/stable/glib-Strings.html
(I'd assume there's some variant of this in the linux kernel? But not seeing it offhand)


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds