cregit-Linux how code gets into the kernel

Release 4.11 fs/proc/cmdline.c

Directory: fs/proc
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>


static int cmdline_proc_show(struct seq_file *m, void *v) { seq_printf(m, "%s\n", saved_command_line); return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Alexey Dobriyan27100.00%1100.00%
Total27100.00%1100.00%


static int cmdline_proc_open(struct inode *inode, struct file *file) { return single_open(file, cmdline_proc_show, NULL); }

Contributors

PersonTokensPropCommitsCommitProp
Alexey Dobriyan26100.00%1100.00%
Total26100.00%1100.00%

static const struct file_operations cmdline_proc_fops = { .open = cmdline_proc_open, .read = seq_read, .llseek = seq_lseek, .release = single_release, };
static int __init proc_cmdline_init(void) { proc_create("cmdline", 0, NULL, &cmdline_proc_fops); return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Alexey Dobriyan24100.00%1100.00%
Total24100.00%1100.00%

fs_initcall(proc_cmdline_init);

Overall Contributors

PersonTokensPropCommitsCommitProp
Alexey Dobriyan12199.18%150.00%
Paul Gortmaker10.82%150.00%
Total122100.00%2100.00%
Directory: fs/proc
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.