pub fn sys_vfs_create_file(trapframe: &mut Trapframe) -> usizeExpand 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 stringtrapframe.get_arg(1)- File mode (reserved for future use)
§Returns
0on successusize::MAXon error (path already exists, permission denied, etc.)