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

Function list_mounts

euralios_std/src/syscalls.rs:600–618  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

598}
599
600pub fn list_mounts() -> Result<(MemoryHandle, u64), SyscallError> {
601 let error: u64;
602 let mem_handle: u64;
603 let length: u64;
604 unsafe {
605 asm!("syscall",
606 in("rax") SYSCALL_LISTMOUNTS,
607 lateout("rax") error,
608 lateout("rdi") mem_handle,
609 lateout("rsi") length,
610 out("rcx") _,
611 out("r11") _);
612 }
613 if error == 0 {
614 Ok((MemoryHandle(mem_handle), length))
615 } else {
616 Err(SyscallError(error))
617 }
618}
619
620pub fn umount(path: &str) -> Result<(), SyscallError> {
621 let error: u64;

Callers 1

mainFunction · 0.85

Calls 2

MemoryHandleClass · 0.85
SyscallErrorClass · 0.85

Tested by

no test coverage detected