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

Method mount

euralios_std/src/syscalls.rs:476–486  ·  view source on GitHub ↗

Add a communication handle as a path in the VFS

(mut self, mut handle: CommHandle, path: &str)

Source from the content-addressed store, hash-verified

474
475 /// Add a communication handle as a path in the VFS
476 pub fn mount(mut self, mut handle: CommHandle, path: &str) -> Self {
477 // String containing handle number
478 let handle_s = unsafe{handle.take().to_string()};
479
480 self.s.push('m'); // Code for "mount"
481 self.s.push_str(&handle_s);
482 self.s.push('|'); // Terminates handle
483 self.s.push_str(path);
484 self.s.push(':'); // Terminates path
485 self
486 }
487
488 /// Remove a path from the VFS
489 pub fn remove(mut self, path: &str) -> Self {

Callers

nothing calls this directly

Calls 2

takeMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected