Function sys_vfs_create_file

Source
pub fn sys_vfs_create_file(trapframe: &mut Trapframe) -> usize
Expand description

Create a regular file using VFS (VfsCreateFile)

This system call creates a new regular file at the specified path using the VFS layer.

§Arguments

  • trapframe.get_arg(0) - Pointer to the null-terminated path string
  • trapframe.get_arg(1) - File mode (reserved for future use)

§Returns

  • 0 on success
  • usize::MAX on error (path already exists, permission denied, etc.)