sys_uname

Function sys_uname 

Source
pub fn sys_uname(_abi: &mut LinuxRiscv64Abi, trapframe: &mut Trapframe) -> usize
Expand description

Linux uname system call implementation

Returns system information including system name, hostname, kernel version, and hardware architecture. This provides compatibility with Linux applications that query system information.

§Arguments

  • buf: Pointer to utsname structure to fill

§Returns

  • 0 on success
  • usize::MAX on error (-1 in Linux)