cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

cmdline.c (415B)


      1// SPDX-License-Identifier: GPL-2.0
      2#include <linux/fs.h>
      3#include <linux/init.h>
      4#include <linux/proc_fs.h>
      5#include <linux/seq_file.h>
      6
      7static int cmdline_proc_show(struct seq_file *m, void *v)
      8{
      9	seq_puts(m, saved_command_line);
     10	seq_putc(m, '\n');
     11	return 0;
     12}
     13
     14static int __init proc_cmdline_init(void)
     15{
     16	proc_create_single("cmdline", 0, NULL, cmdline_proc_show);
     17	return 0;
     18}
     19fs_initcall(proc_cmdline_init);