-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add syscall_scope
, a scope guard for system calls.
#342
Conversation
`syscall_scope` creates a scope in which Allow and Subscribe system calls can be soundly executed, by guaranteeing that the buffers and upcalls are revoked before their lifetime ends. The exact system calls (type and ID) are inferred from the type of the closure passed to `syscall_scope`, using the `ShareList` trait. `syscall_scope` is the `run` function described at tock#341, and `ShareList` is the `SyscallList` trait.
Ping on reviews? This blocks further work on the Allow and Subscribe syscall APIs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks reasonable to me
bors r+ |
342: Add `syscall_scope`, a scope guard for system calls. r=jrvanwhy a=jrvanwhy `syscall_scope` creates a scope in which Allow and Subscribe system calls can be soundly executed, by guaranteeing that the buffers and upcalls are revoked before their lifetime ends. The exact system calls (type and ID) are inferred from the type of the closure passed to `syscall_scope`, using the `ShareList` trait. `syscall_scope` is the `run` function described at #341, and `ShareList` is the `SyscallList` trait. Co-authored-by: Johnathan Van Why <[email protected]>
Build failed: |
CI failed because |
bors r+ |
syscall_scope
creates a scope in which Allow and Subscribe system calls can be soundly executed, by guaranteeing that the buffers and upcalls are revoked before their lifetime ends. The exact system calls (type and ID) are inferred from the type of the closure passed tosyscall_scope
, using theShareList
trait.syscall_scope
is therun
function described at #341, andShareList
is theSyscallList
trait.