mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-18 12:16:31 +00:00
@ -210,7 +210,7 @@ impl<T> SpinLock<T> {
|
||||
flag: 0,
|
||||
});
|
||||
}
|
||||
return Err(SystemError::EAGAIN);
|
||||
return Err(SystemError::EAGAIN_OR_EWOULDBLOCK);
|
||||
}
|
||||
|
||||
pub fn try_lock_irqsave(&self) -> Result<SpinLockGuard<T>, SystemError> {
|
||||
@ -221,7 +221,7 @@ impl<T> SpinLock<T> {
|
||||
flag: flags,
|
||||
});
|
||||
}
|
||||
return Err(SystemError::EAGAIN);
|
||||
return Err(SystemError::EAGAIN_OR_EWOULDBLOCK);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user