On Mon, Nov 30, 2026 at 12:48 PM Miguel Ojeda <[email protected]> wrote: > > On Mon, Nov 30, 2026 at 11:18 AM Alice Ryhl <[email protected]> wrote: > > > > While teaching the Rust for Linux course, > > Without context, people will not know what course it means. Maybe add > the company name?
Yeah I worded this "my" elsewhere but forgot to do so here. > > integer, so it's not clear what values about i32::MAX would mean. > > "above" > > > This means that there are two ways of returning a > > negative value to userspace (either Err(err) or Ok(-x)), and that > > userspace cannot distinguish whether the driver did one or the other. > > Yeah, I am not thrilled about having two ways that look different but > do the same. Well, I don't think the current behavior that has errornous behavior is great either. Perhaps we can just return Result<()>, but I am not sure if any DRM drivers actually need non-zero return value. Alice
