LWN.net (RSS Feed) on Nostr: [$] Best practices for error handling in kernel Rust Dirk Behme led a session ...
[$] Best practices for error handling in kernel Rust
Dirk Behme led a session discussing the use of Rust's question-mark operator in
the kernel at Kangrejos 2024. He was particularly concerned with the concept of
"silent" errors that don't print any messages to the console.
Other attendees were less convinced that this was a problem, but his presentation
sparked a lot of discussion about whether the Rust-for-Linux project could
improve error handling in kernel Rust code.
https://lwn.net/Articles/990489/Published at
2024-09-19 15:54:01Event JSON
{
"id": "19d47da9ba832d609e121955623d8cbfbe336b0041d7c8d992c1cd377fee4992",
"pubkey": "25234be63ec1aa23d2868b72d50e995e955b7e19df59a1a14cfee3933e4fffc5",
"created_at": 1726761241,
"kind": 1,
"tags": [
[
"proxy",
"https://lwn.net/headlines/newrss#https%3A%2F%2Flwn.net%2FArticles%2F990489%2F",
"rss"
]
],
"content": "[$] Best practices for error handling in kernel Rust\n\n\nDirk Behme led a session discussing the use of Rust's question-mark operator in\nthe kernel at Kangrejos 2024. He was particularly concerned with the concept of\n\"silent\" errors that don't print any messages to the console.\nOther attendees were less convinced that this was a problem, but his presentation\nsparked a lot of discussion about whether the Rust-for-Linux project could\nimprove error handling in kernel Rust code.\n\n\nhttps://lwn.net/Articles/990489/",
"sig": "9af36aa9b8670dbd7902c55f149f13f82646aa810b29cbeab8aae33c3e416a979e5bdfb20efa245cd22df534c3e75f34877d03ce402d881046c28e388b4bc1e8"
}