drivers/pcid: Update to redox-scheme 0.8

This commit is contained in:
bjorn3
2025-12-13 13:03:14 +01:00
parent f329988b9d
commit 256f4fe6b8
3 changed files with 9 additions and 3 deletions
Generated
+1 -1
View File
@@ -1312,7 +1312,7 @@ dependencies = [
"pci_types",
"pico-args",
"plain",
"redox-scheme 0.6.2",
"redox-scheme 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)",
"redox_syscall",
"serde",
]
+1 -1
View File
@@ -19,7 +19,7 @@ log = "0.4"
pci_types = "0.10"
pico-args = { version = "0.5", features = ["combined-flags"] }
plain = "0.2"
redox-scheme = "0.6.2"
redox-scheme = "0.8.2"
redox_syscall = "0.5.9"
serde = { version = "1", features = ["derive"] }
+7 -1
View File
@@ -203,7 +203,13 @@ impl SchemeSync for PciScheme {
}
}
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.stat {