Release 4.14 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
Person | Tokens | Prop | Commits | CommitProp |
Jesse Barnes | 16 | 59.26% | 1 | 33.33% |
Mark Goodwin | 10 | 37.04% | 1 | 33.33% |
Russ Anderson | 1 | 3.70% | 1 | 33.33% |
Total | 27 | 100.00% | 3 | 100.00% |
static int partition_id_open(struct inode *inode, struct file *file)
{
return single_open(file, partition_id_show, NULL);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Mark Goodwin | 15 | 57.69% | 1 | 33.33% |
Jesse Barnes | 11 | 42.31% | 2 | 66.67% |
Total | 26 | 100.00% | 3 | 100.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
Person | Tokens | Prop | Commits | CommitProp |
Jesse Barnes | 18 | 64.29% | 1 | 50.00% |
Mark Goodwin | 10 | 35.71% | 1 | 50.00% |
Total | 28 | 100.00% | 2 | 100.00% |
static int system_serial_number_open(struct inode *inode, struct file *file)
{
return single_open(file, system_serial_number_show, NULL);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Mark Goodwin | 20 | 76.92% | 1 | 50.00% |
Jesse Barnes | 6 | 23.08% | 1 | 50.00% |
Total | 26 | 100.00% | 2 | 100.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
Person | Tokens | Prop | Commits | CommitProp |
Jesse Barnes | 15 | 53.57% | 1 | 33.33% |
Mark Goodwin | 12 | 42.86% | 1 | 33.33% |
Matthew Wilcox | 1 | 3.57% | 1 | 33.33% |
Total | 28 | 100.00% | 3 | 100.00% |
static int licenseID_open(struct inode *inode, struct file *file)
{
return single_open(file, licenseID_show, NULL);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Mark Goodwin | 16 | 61.54% | 1 | 50.00% |
Jesse Barnes | 10 | 38.46% | 1 | 50.00% |
Total | 26 | 100.00% | 2 | 100.00% |
static int coherence_id_show(struct seq_file *s, void *p)
{
seq_printf(s, "%d\n", partition_coherence_id());
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Dean Roe | 17 | 60.71% | 1 | 33.33% |
Mark Goodwin | 10 | 35.71% | 1 | 33.33% |
Jack Steiner | 1 | 3.57% | 1 | 33.33% |
Total | 28 | 100.00% | 3 | 100.00% |
static int coherence_id_open(struct inode *inode, struct file *file)
{
return single_open(file, coherence_id_show, NULL);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Mark Goodwin | 25 | 96.15% | 1 | 50.00% |
Dean Roe | 1 | 3.85% | 1 | 50.00% |
Total | 26 | 100.00% | 2 | 100.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
Person | Tokens | Prop | Commits | CommitProp |
Mark Goodwin | 44 | 45.36% | 2 | 28.57% |
Alexey Dobriyan | 25 | 25.77% | 1 | 14.29% |
Denis V. Lunev | 15 | 15.46% | 1 | 14.29% |
Jesse Barnes | 8 | 8.25% | 2 | 28.57% |
Andrew Morton | 5 | 5.15% | 1 | 14.29% |
Total | 97 | 100.00% | 7 | 100.00% |
#endif /* CONFIG_PROC_FS */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Mark Goodwin | 195 | 39.16% | 2 | 14.29% |
Alexey Dobriyan | 152 | 30.52% | 1 | 7.14% |
Jesse Barnes | 96 | 19.28% | 3 | 21.43% |
Dean Roe | 25 | 5.02% | 1 | 7.14% |
Denis V. Lunev | 15 | 3.01% | 1 | 7.14% |
Andrew Morton | 8 | 1.61% | 1 | 7.14% |
Jes Sorensen | 2 | 0.40% | 1 | 7.14% |
Russ Anderson | 2 | 0.40% | 1 | 7.14% |
Matthew Wilcox | 1 | 0.20% | 1 | 7.14% |
Jack Steiner | 1 | 0.20% | 1 | 7.14% |
Linus Torvalds | 1 | 0.20% | 1 | 7.14% |
Total | 498 | 100.00% | 14 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.