Skip to main content

SYS_GETCMDLINE

Constant SYS_GETCMDLINE 

Source
pub const SYS_GETCMDLINE: usize = 901 /* 901usize */;
Expand description

Read the kernel boot command line.

  • buf_ptr: user buffer to receive the command line bytes
  • buf_len: capacity of buf_ptr in bytes

Returns the full command line length (like snprintf), even when it is larger than buf_len. Copies min(len, buf_len) bytes; the bytes are not required to be NUL-terminated.