forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 475
Open
Labels
• libRelated to the `rust/` library.Related to the `rust/` library.
Description
Kernel error numbers are non-zero and positive, so I was wondering if it would make sense to constrain the Error
type in that way (making the from c_int conversion fallible).
It could use the NonZero
wrapper for now, and in the future might be able to have a niche for negative numbers as well. This would allow a return type of KernelResult<()>
to be exactly equivalent to c_int
.
Metadata
Metadata
Assignees
Labels
• libRelated to the `rust/` library.Related to the `rust/` library.