Skip to content

Commit

Permalink
Adds mtx_unlock_flags
Browse files Browse the repository at this point in the history
  • Loading branch information
ultimaweapon committed May 26, 2024
1 parent 5c7adaf commit a20eeea
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
9 changes: 9 additions & 0 deletions kernel-1100/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,15 @@ impl okf::Kernel for Kernel {
line: c_int,
);

#[offset(0x10E950)]
unsafe fn mtx_unlock_flags(
self,
m: *mut Self::Mtx,
opts: c_int,
file: *const c_char,
line: c_int,
);

#[offset(0x365F50)]
unsafe fn sleep(
self,
Expand Down
11 changes: 11 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,17 @@ pub trait Kernel: MappedKernel {
line: c_int,
);

/// # Safety
/// - `m` cannot be null.
/// - `file` cannot be null and must point to a null-terminated string.
unsafe fn mtx_unlock_flags(
self,
m: *mut Self::Mtx,
opts: c_int,
file: *const c_char,
line: c_int,
);

/// # Safety
/// - `ident` cannot be null.
/// - `wmesg` cannot be null and must point to a null-terminated string.
Expand Down

0 comments on commit a20eeea

Please sign in to comment.