mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-29 04:13:24 +00:00
Add sched_attr
system call series
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
9e1c939a3f
commit
c1dde01fc3
@ -246,6 +246,12 @@ impl From<aster_block::bio::BioStatus> for Error {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<core::num::TryFromIntError> for Error {
|
||||
fn from(_: core::num::TryFromIntError) -> Self {
|
||||
Error::with_message(Errno::EINVAL, "Invalid integer")
|
||||
}
|
||||
}
|
||||
|
||||
impl From<core::str::Utf8Error> for Error {
|
||||
fn from(_: core::str::Utf8Error) -> Self {
|
||||
Error::with_message(Errno::EINVAL, "Invalid utf-8 string")
|
||||
|
Reference in New Issue
Block a user