add seq_file "single" interfaces
PATCH 1/1 add seq_file "single" interfaces
Hi,
This patch adds the seq_file "single" interfaces from 2.6.0-test4 to 2.4.22++. This will enable larger /proc/interrupts and /proc/mdstat, which currently have some oopsing problems with large outputs.
Please apply.
--
~Randy
patch_name: seq_single_2423p1.patchpatch_version: 2003-08-25.09:34:59
author: Randy.Dunlap <[email protected]>
description: add seq_file "single" interfaces from 2.6.0-test4
product: Linuxproduct_versions: 2422
diffstat: =
fs/seq_file.c | 90 +++++++++++++++++++++++++++++++++++++++++++++-- include/linux/seq_file.h | 13 ++++++ 2 files changed, 100 insertions(+), 3 deletions(-)
include/linux/seq_file.h renamed from include/linux/seq_file.h~seqsingle +13 -0
@@ -2,7 +2,15 @@#define _LINUX_SEQ_FILE_H #ifdef __KERNEL__ +#include <linux/types.h> +#include <linux/string.h> +#include <asm/semaphore.h> + struct seq_operations; +struct file; +struct vfsmount; +struct dentry; +struct inode; struct seq_file { char *buf;
@@ -52,5 +60,10 @@ static inline int seq_puts(struct seq_fiint seq_printf (struct seq_file *,const char *, ...) __attribute__ ((format (printf,2 ,3 ))); +int seq_path (struct seq_file *,struct vfsmount *,struct dentry *,char *); + +int single_open (struct file *,int (*)(struct seq_file *,void *),void *); +int single_release (struct inode *,struct file *); +int seq_release_private (struct inode *,struct file *);#endif #endif
fs/seq_file.c renamed from fs/seq_file.c~seqsingle +87 -3
117 lines not on this page · raw message
Quoted 9 lines · Randy.Dunlap
Hi,
This patch adds the
seq_file"single" interfaces from 2.6.0-test4 to 2.4.22++. This will enable larger/proc/interruptsand/proc/mdstat, which currently have some oopsing problems with large outputs.Please apply.
How about exporting them in kernel/ksyms ?
Signature · 4 lines
J.A. Magallon <[email protected]> \ Software is like sex: werewolf.able.es \ It's better when it's free Mandrake Linux release 9.2 (Cooker) for i586 Linux 2.4.22-rc3-jam1m (gcc 3.3.1 (Mandrake Linux 9.2 3.3.1-1mdk))
Quoted 7 lines · J.A. Magallon
Quoted 5 lines
This patch adds the
seq_file"single" interfaces from 2.6.0-test4 to 2.4.22++. This will enable larger/proc/interruptsand/proc/mdstat, which currently have some oopsing problems with large outputs.
Please apply.How about exporting them in kernel/ksyms ?
Right.
ciao, Marc
kernel/ksyms.c +4 -0
@@ -515,6 +515,10 @@ EXPORT_SYMBOL(seq_open);EXPORT_SYMBOL (seq_release);EXPORT_SYMBOL (seq_read);EXPORT_SYMBOL (seq_lseek); +EXPORT_SYMBOL (seq_path); +EXPORT_SYMBOL (single_open); +EXPORT_SYMBOL (single_release); +EXPORT_SYMBOL (seq_release_private);/* Program loader interfaces */ EXPORT_SYMBOL (setup_arg_pages);