drivers/acpid: Update to redox-scheme 0.8

This commit is contained in:
bjorn3
2025-12-13 13:00:54 +01:00
parent 96c4775c6c
commit 74d01f34a6
3 changed files with 9 additions and 3 deletions
Generated
+1 -1
View File
@@ -46,7 +46,7 @@ dependencies = [
"num-traits",
"parking_lot 0.12.5",
"plain",
"redox-scheme 0.6.2",
"redox-scheme 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)",
"redox_event",
"redox_syscall",
"ron",
+1 -1
View File
@@ -23,6 +23,6 @@ amlserde = { path = "../amlserde" }
common = { path = "../common" }
daemon = { path = "../../daemon" }
libredox = "0.1.3"
redox-scheme = "0.6.2"
redox-scheme = "0.8.2"
arrayvec = "0.7.6"
serde = { version = "1.0.228", features = ["derive"] }
+7 -1
View File
@@ -373,7 +373,13 @@ impl SchemeSync for AcpiScheme<'_> {
Err(Error::new(EBADF))
}
fn call(&mut self, id: usize, payload: &mut [u8], _metadata: &[u64]) -> Result<usize> {
fn call(
&mut self,
id: usize,
payload: &mut [u8],
_metadata: &[u64],
_ctx: &CallerCtx,
) -> Result<usize> {
let handle = self.handles.get_mut(&id).ok_or(Error::new(EBADF))?;
if !handle.allowed_to_eval {
return Err(Error::new(EPERM));