X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fkernel%2Fsamples%2F03.proc%2F.git;a=blobdiff_plain;f=hello_procfs.c;fp=hello_procfs.c;h=4420ad4013c8310387ebc20add8ac9bdd2775827;hp=a78eff8e9dc20931786f4c379090bead15b78496;hb=d01c3638c059da999013f52f4c5b1e0026828eda;hpb=beda26d1f93a4087bc858e5c95f3b8fd616ba1e2 diff --git a/hello_procfs.c b/hello_procfs.c index a78eff8..4420ad4 100644 --- a/hello_procfs.c +++ b/hello_procfs.c @@ -30,30 +30,6 @@ static int hello_show(struct seq_file *file, void *data) return 0; } -#if 0 -static void * hello_start(struct seq_file *file, loff_t *pos) -{ - return NULL; -} - -static void hello_stop(struct seq_file *file, void *data) -{ -} - -static void * hello_next(struct seq_file *file, void *data, loff_t *pos) -{ - return NULL; -} - -static const struct seq_operations hello_seqops = -{ - .start = hello_start, - .stop = hello_stop, - .next = hello_next, - .show = hello_show, -}; -#endif - static int hello_procfs_open(struct inode *inode, struct file *file) { return single_open(file, hello_show, NULL);