cregit-Linux how code gets into the kernel

Release 4.10 arch/ia64/sn/kernel/sn2/sn_proc_fs.c

/*
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 *
 * Copyright (C) 2000-2005 Silicon Graphics, Inc. All rights reserved.
 */

#ifdef CONFIG_PROC_FS
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/uaccess.h>
#include <asm/sn/sn_sal.h>


static int partition_id_show(struct seq_file *s, void *p) { seq_printf(s, "%d\n", sn_partition_id); return 0; }

Contributors

PersonTokensPropCommitsCommitProp
jesse barnesjesse barnes1659.26%133.33%
mark goodwinmark goodwin1037.04%133.33%
russ andersonruss anderson13.70%133.33%
Total27100.00%3100.00%


static int partition_id_open(struct inode *inode, struct file *file) { return single_open(file, partition_id_show, NULL); }

Contributors

PersonTokensPropCommitsCommitProp
mark goodwinmark goodwin1557.69%133.33%
jesse barnesjesse barnes1142.31%266.67%
Total26100.00%3100.00%


static int system_serial_number_show(struct seq_file *s, void *p) { seq_printf(s, "%s\n", sn_system_serial_number()); return 0; }

Contributors

PersonTokensPropCommitsCommitProp
jesse barnesjesse barnes1864.29%150.00%
mark goodwinmark goodwin1035.71%150.00%
Total28100.00%2100.00%


static int system_serial_number_open(struct inode *inode, struct file *file) { return single_open(file, system_serial_number_show, NULL); }

Contributors

PersonTokensPropCommitsCommitProp
mark goodwinmark goodwin2076.92%150.00%
jesse barnesjesse barnes623.08%150.00%
Total26100.00%2100.00%


static int licenseID_show(struct seq_file *s, void *p) { seq_printf(s, "0x%llx\n", sn_partition_serial_number_val()); return 0; }

Contributors

PersonTokensPropCommitsCommitProp
jesse barnesjesse barnes1553.57%133.33%
mark goodwinmark goodwin1242.86%133.33%
matthew wilcoxmatthew wilcox13.57%133.33%
Total28100.00%3100.00%


static int licenseID_open(struct inode *inode, struct file *file) { return single_open(file, licenseID_show, NULL); }

Contributors

PersonTokensPropCommitsCommitProp
mark goodwinmark goodwin1661.54%150.00%
jesse barnesjesse barnes1038.46%150.00%
Total26100.00%2100.00%


static int coherence_id_show(struct seq_file *s, void *p) { seq_printf(s, "%d\n", partition_coherence_id()); return 0; }

Contributors

PersonTokensPropCommitsCommitProp
dean roedean roe1760.71%133.33%
mark goodwinmark goodwin1035.71%133.33%
jack steinerjack steiner13.57%133.33%
Total28100.00%3100.00%


static int coherence_id_open(struct inode *inode, struct file *file) { return single_open(file, coherence_id_show, NULL); }

Contributors

PersonTokensPropCommitsCommitProp
mark goodwinmark goodwin2596.15%150.00%
dean roedean roe13.85%150.00%
Total26100.00%2100.00%

/* /proc/sgi_sn/sn_topology uses seq_file, see sn_hwperf.c */ extern int sn_topology_open(struct inode *, struct file *); extern int sn_topology_release(struct inode *, struct file *); static const struct file_operations proc_partition_id_fops = { .open = partition_id_open, .read = seq_read, .llseek = seq_lseek, .release = single_release, }; static const struct file_operations proc_system_sn_fops = { .open = system_serial_number_open, .read = seq_read, .llseek = seq_lseek, .release = single_release, }; static const struct file_operations proc_license_id_fops = { .open = licenseID_open, .read = seq_read, .llseek = seq_lseek, .release = single_release, }; static const struct file_operations proc_coherence_id_fops = { .open = coherence_id_open, .read = seq_read, .llseek = seq_lseek, .release = single_release, }; static const struct file_operations proc_sn_topo_fops = { .open = sn_topology_open, .read = seq_read, .llseek = seq_lseek, .release = sn_topology_release, };
void register_sn_procfs(void) { static struct proc_dir_entry *sgi_proc_dir = NULL; BUG_ON(sgi_proc_dir != NULL); if (!(sgi_proc_dir = proc_mkdir("sgi_sn", NULL))) return; proc_create("partition_id", 0444, sgi_proc_dir, &proc_partition_id_fops); proc_create("system_serial_number", 0444, sgi_proc_dir, &proc_system_sn_fops); proc_create("licenseID", 0444, sgi_proc_dir, &proc_license_id_fops); proc_create("coherence_id", 0444, sgi_proc_dir, &proc_coherence_id_fops); proc_create("sn_topology", 0444, sgi_proc_dir, &proc_sn_topo_fops); }

Contributors

PersonTokensPropCommitsCommitProp
mark goodwinmark goodwin4445.36%228.57%
alexey dobriyanalexey dobriyan2525.77%114.29%
denis v. lunevdenis v. lunev1515.46%114.29%
jesse barnesjesse barnes88.25%228.57%
andrew mortonandrew morton55.15%114.29%
Total97100.00%7100.00%

#endif /* CONFIG_PROC_FS */

Overall Contributors

PersonTokensPropCommitsCommitProp
mark goodwinmark goodwin19639.36%214.29%
alexey dobriyanalexey dobriyan15130.32%17.14%
jesse barnesjesse barnes9619.28%321.43%
dean roedean roe255.02%17.14%
denis v. lunevdenis v. lunev153.01%17.14%
andrew mortonandrew morton81.61%17.14%
russ andersonruss anderson20.40%17.14%
jes sorensenjes sorensen20.40%17.14%
matthew wilcoxmatthew wilcox10.20%17.14%
linus torvaldslinus torvalds10.20%17.14%
jack steinerjack steiner10.20%17.14%
Total498100.00%14100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.