News for hackers. Stuff that matters.
Re:Kerla: Monolithic kernel in Rust, aiming for Linux ABI co... by geofft on Monday October 25, 2021 @10:53AM (#28988467)
Yes, this is called "fallible allocations." You add methods with the "try_" prefix that work like the existing methods, except they return a Result which fails if it's out of memory instead of panicking.

We have a light / temporary fork of the Rust stdlib allocator with fallible allocation support: https://github.com/Rust-for-Linux/linux/tree/rust/rust/alloc

See e.g. https://github.com/Rust-for-Linux/linux/commit/487d7578bd036...

There are no comments on this comment yet.