CmdLine returns the command line of the kernel.
()
| 21 | |
| 22 | // CmdLine returns the command line of the kernel. |
| 23 | func (fs FS) CmdLine() ([]string, error) { |
| 24 | data, err := parsers.ReadFileNoStat(fs.proc.Path("cmdline")) |
| 25 | if err != nil { |
| 26 | return nil, err |
| 27 | } |
| 28 | |
| 29 | return strings.Fields(string(data)), nil |
| 30 | } |