Expose storedevs to the outside world via dev interface

This commit is contained in:
2025-10-11 02:35:15 +02:00
parent 3996f71316
commit 6b0e05e506
18 changed files with 137 additions and 18 deletions

View File

@ -107,7 +107,7 @@ int32_t SYSCALL5(sys_devctl, devh1, cmd1, buffer1, len1, extra1) {
goto done;
}
spinlock_acquire(&dev->spinlock);
ret = dev->fns[cmd]((uint8_t *)buffer1, (size_t)len1, (void *)extra1);
ret = dev->fns[cmd](dev, (uint8_t *)buffer1, (size_t)len1, (void *)extra1);
spinlock_release(&dev->spinlock);
} break;
}