/* -*- linux-c -*- * * $Id: sysrq.h,v 1.3 1997/07/17 11:54:33 mj Exp $ * * Linux Magic System Request Key Hacks * * (c) 1997 Martin Mares <mj@atrey.karlin.mff.cuni.cz> * * (c) 2000 Crutcher Dunnavant <crutcher+kernel@datastacks.com> * overhauled to use key registration * based upon discusions in irc://irc.openprojects.net/#kernelnewbies */ #ifndef _LINUX_SYSRQ_H #define _LINUX_SYSRQ_H #include <linux/errno.h> #include <linux/types.h> /* Possible values of bitmask for enabling sysrq functions */ /* 0x0001 is reserved for enable everything */ #define SYSRQ_ENABLE_LOG 0x0002 #define SYSRQ_ENABLE_KEYBOARD 0x0004 #define SYSRQ_ENABLE_DUMP 0x0008 #define SYSRQ_ENABLE_SYNC 0x0010 #define SYSRQ_ENABLE_REMOUNT 0x0020 #define SYSRQ_ENABLE_SIGNAL 0x0040 #define SYSRQ_ENABLE_BOOT 0x0080 #define SYSRQ_ENABLE_RTNICE 0x0100 struct sysrq_key_op { void (*handler)(int); char *help_msg; char *action_msg; int enable_mask; }; #ifdef CONFIG_MAGIC_SYSRQ /* Generic SysRq interface -- you may call it from any device driver, supplying * ASCII code of the key, pointer to registers and kbd/tty structs (if they * are available -- else NULL's). */ void handle_sysrq(int key); void __handle_sysrq(int key, bool check_mask); int register_sysrq_key(int key, struct sysrq_key_op *op); int unregister_sysrq_key(int key, struct sysrq_key_op *op); struct sysrq_key_op *__sysrq_get_key_op(int key); int sysrq_toggle_support(int enable_mask); #else
static inline void handle_sysrq(int key) { }Contributors
Person | Tokens | Prop | Commits | CommitProp | |
dmitry torokhov | dmitry torokhov | 5 | 55.56% | 1 | 50.00% |
ingo molnar | ingo molnar | 4 | 44.44% | 1 | 50.00% |
Total | 9 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
dmitry torokhov | dmitry torokhov | 12 | 100.00% | 2 | 100.00% |
Total | 12 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
linus torvalds | linus torvalds | 11 | 57.89% | 1 | 50.00% |
dmitry torokhov | dmitry torokhov | 8 | 42.11% | 1 | 50.00% |
Total | 19 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
dmitry torokhov | dmitry torokhov | 10 | 52.63% | 1 | 50.00% |
ingo molnar | ingo molnar | 9 | 47.37% | 1 | 50.00% |
Total | 19 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
linus torvalds | linus torvalds | 59 | 29.65% | 2 | 15.38% |
dmitry torokhov | dmitry torokhov | 46 | 23.12% | 3 | 23.08% |
jan kara | jan kara | 37 | 18.59% | 1 | 7.69% |
ingo molnar | ingo molnar | 18 | 9.05% | 1 | 7.69% |
al viro | al viro | 9 | 4.52% | 1 | 7.69% |
jason wessel | jason wessel | 9 | 4.52% | 1 | 7.69% |
thomas petazzoni | thomas petazzoni | 9 | 4.52% | 1 | 7.69% |
pre-git | pre-git | 7 | 3.52% | 1 | 7.69% |
tobias doerffel | tobias doerffel | 3 | 1.51% | 1 | 7.69% |
jason baron | jason baron | 2 | 1.01% | 1 | 7.69% |
Total | 199 | 100.00% | 13 | 100.00% |