Lines Matching refs:file
107 static ssize_t statistics_write(struct file *file, const char __user *userbuf, in statistics_write() argument
133 static ssize_t mcs_statistics_write(struct file *file, in mcs_statistics_write() argument
147 static ssize_t options_write(struct file *file, const char __user *userbuf, in options_write() argument
159 static int cch_seq_show(struct seq_file *file, void *data) in cch_seq_show() argument
168 seq_puts(file, "# gid bid ctx# asid pid cbrs dsbytes mode\n"); in cch_seq_show()
174 seq_printf(file, " %5d%5d%6d%7d%9d%6d%8d%8s\n", in cch_seq_show()
187 static int gru_seq_show(struct seq_file *file, void *data) in gru_seq_show() argument
193 seq_puts(file, "# gid nid ctx cbr dsr ctx cbr dsr\n"); in gru_seq_show()
194 seq_puts(file, "# busy busy busy free free free\n"); in gru_seq_show()
200 seq_printf(file, " %5d%5d%7ld%6ld%6ld%8ld%6ld%6ld\n", in gru_seq_show()
209 static void seq_stop(struct seq_file *file, void *data) in seq_stop() argument
213 static void *seq_start(struct seq_file *file, loff_t *gid) in seq_start() argument
220 static void *seq_next(struct seq_file *file, void *data, loff_t *gid) in seq_next() argument
242 static int statistics_open(struct inode *inode, struct file *file) in statistics_open() argument
244 return single_open(file, statistics_show, NULL); in statistics_open()
247 static int mcs_statistics_open(struct inode *inode, struct file *file) in mcs_statistics_open() argument
249 return single_open(file, mcs_statistics_show, NULL); in mcs_statistics_open()
252 static int options_open(struct inode *inode, struct file *file) in options_open() argument
254 return single_open(file, options_show, NULL); in options_open()