#include <linux/fs.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/proc_fs.h> #include <linux/seq_file.h> #include <linux/utsname.h> static int version_proc_show(struct seq_file *m, void *v) { seq_printf(m, linux_proc_banner, utsname()->sysname, utsname()->release, utsname()->version); return 0; } static int version_proc_open(struct inode *inode, struct file *file) { return single_open(file, version_proc_show, NULL); } static const struct file_operations version_proc_fops = { .open = version_proc_open, .read = seq_read, .llseek = seq_lseek, .release = single_release, }; static int __init proc_version_init(void) { proc_create("version", 0, NULL, &version_proc_fops); return 0; } fs_initcall(proc_version_init); t.cgi/'>index</a> : <a href='/cgit.cgi/linux/net-next.git/'>net-next.git</a></td><td class='form'><form method='get'> <input type='hidden' name='id' value='2a2a5d1835b6f0baa0e207426d3c79eefd32e253'/><select name='h' onchange='this.form.submit();'> <option value='emaclite-cleanup'>emaclite-cleanup</option> <option value='master' selected='selected'>master</option> <option value='nds-private-remove'>nds-private-remove</option> <option value='packet-loop-back'>packet-loop-back</option> <option value='packet-rx-pump-back'>packet-rx-pump-back</option> </select> <input type='submit' value='switch'/></form></td></tr> <tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table> <table class='tabs'><tr><td> <a href='/cgit.cgi/linux/net-next.git/'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?id=2a2a5d1835b6f0baa0e207426d3c79eefd32e253'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/tools/lib/symbol/kallsyms.c'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/tools/lib/symbol/kallsyms.c?id=2a2a5d1835b6f0baa0e207426d3c79eefd32e253'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/tools/lib/symbol/kallsyms.c?id=2a2a5d1835b6f0baa0e207426d3c79eefd32e253'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/tools/lib/symbol/kallsyms.c?id=2a2a5d1835b6f0baa0e207426d3c79eefd32e253'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/tools/lib/symbol/kallsyms.c'> <input type='hidden' name='id' value='2a2a5d1835b6f0baa0e207426d3c79eefd32e253'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?id=2a2a5d1835b6f0baa0e207426d3c79eefd32e253'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools?id=2a2a5d1835b6f0baa0e207426d3c79eefd32e253'>tools</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/lib?id=2a2a5d1835b6f0baa0e207426d3c79eefd32e253'>lib</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/lib/symbol?id=2a2a5d1835b6f0baa0e207426d3c79eefd32e253'>symbol</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/lib/symbol/kallsyms.c?id=2a2a5d1835b6f0baa0e207426d3c79eefd32e253'>kallsyms.c</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/tools/lib/symbol/kallsyms.c?id=2a2a5d1835b6f0baa0e207426d3c79eefd32e253&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>