|
|
Log in / Subscribe / Register

A first look at Rust in the 6.1 kernel

A first look at Rust in the 6.1 kernel

Posted Oct 13, 2022 21:38 UTC (Thu) by xav (guest, #18536)
Parent article: A first look at Rust in the 6.1 kernel

A small clarification: the Drop implementation is totally optional. In this example you clearly see it does nothing of value except printing logs; you could just omit it, the compiler will generate the necessary code for you (here, it will free the memory allocated for the numbers as well as properly finalizing the module).


to post comments


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