Skip to content

Commit e1fe22b

Browse files
crates/sel4: add seL4_SchedContext_Bind
Signed-off-by: Bill Nguyen <bill.nguyen@unsw.edu.au>
1 parent c30d0e4 commit e1fe22b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

crates/sel4/src/invocations.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,13 @@ impl<C: InvocationContext> SchedControl<C> {
348348

349349
#[sel4_cfg(KERNEL_MCS)]
350350
impl<C: InvocationContext> SchedContext<C> {
351+
/// Corresponds to `seL4_SchedContext_Bind`.
352+
pub fn bind_ntfn(self, notification: Notification) -> Result<()> {
353+
Error::wrap(self.invoke(|cptr, ipc_buffer| {
354+
ipc_buffer.inner_mut().seL4_SchedContext_Bind(cptr.bits(), notification.bits())
355+
}))
356+
}
357+
351358
/// Corresponds to `seL4_SchedContext_Unbind`.
352359
pub fn unbind(self) -> Result<()> {
353360
Error::wrap(self.invoke(|cptr, ipc_buffer| {

0 commit comments

Comments
 (0)