xref: /kernel/linux/linux-5.10/fs/proc/cmdline.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/fs/proc/
18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci#include <linux/fs.h>
38c2ecf20Sopenharmony_ci#include <linux/init.h>
48c2ecf20Sopenharmony_ci#include <linux/proc_fs.h>
58c2ecf20Sopenharmony_ci#include <linux/seq_file.h>
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_cistatic int cmdline_proc_show(struct seq_file *m, void *v)
88c2ecf20Sopenharmony_ci{
98c2ecf20Sopenharmony_ci	seq_puts(m, saved_command_line);
108c2ecf20Sopenharmony_ci	seq_putc(m, '\n');
118c2ecf20Sopenharmony_ci	return 0;
128c2ecf20Sopenharmony_ci}
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_cistatic int __init proc_cmdline_init(void)
158c2ecf20Sopenharmony_ci{
168c2ecf20Sopenharmony_ci	proc_create_single("cmdline", 0, NULL, cmdline_proc_show);
178c2ecf20Sopenharmony_ci	return 0;
188c2ecf20Sopenharmony_ci}
198c2ecf20Sopenharmony_cifs_initcall(proc_cmdline_init);
20

Indexes created Thu Nov 07 10:32:03 CST 2024