MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / umount

Function umount

euralios_std/src/syscalls.rs:620–639  ·  view source on GitHub ↗
(path: &str)

Source from the content-addressed store, hash-verified

618}
619
620pub fn umount(path: &str) -> Result<(), SyscallError> {
621 let error: u64;
622 unsafe {
623 asm!("syscall",
624 // RAX contains syscall (8)
625 in("rax") SYSCALL_UMOUNT,
626 // RDI contains pointer to string data
627 in("rdi") path.as_ptr() as usize,
628 // RSI contains string length
629 in("rsi") path.len(),
630 lateout("rax") error,
631 out("rcx") _,
632 out("r11") _);
633 }
634 if error == 0 {
635 Ok(())
636 } else {
637 Err(SyscallError(error))
638 }
639}
640
641/// Wait for a hardware interrupt to occur
642pub fn await_interrupt() {

Callers

nothing calls this directly

Calls 1

SyscallErrorClass · 0.85

Tested by

no test coverage detected