#ifndef _LINUX_SYSRQ_H
#define _LINUX_SYSRQ_H
#include <linux/errno.h>
#include <linux/types.h>
#define SYSRQ_ENABLE_LOG …
#define SYSRQ_ENABLE_KEYBOARD …
#define SYSRQ_ENABLE_DUMP …
#define SYSRQ_ENABLE_SYNC …
#define SYSRQ_ENABLE_REMOUNT …
#define SYSRQ_ENABLE_SIGNAL …
#define SYSRQ_ENABLE_BOOT …
#define SYSRQ_ENABLE_RTNICE …
struct sysrq_key_op { … };
#ifdef CONFIG_MAGIC_SYSRQ
void handle_sysrq(u8 key);
void __handle_sysrq(u8 key, bool check_mask);
int register_sysrq_key(u8 key, const struct sysrq_key_op *op);
int unregister_sysrq_key(u8 key, const struct sysrq_key_op *op);
extern const struct sysrq_key_op *__sysrq_reboot_op;
int sysrq_toggle_support(int enable_mask);
int sysrq_mask(void);
#else
static inline void handle_sysrq(u8 key)
{
}
static inline void __handle_sysrq(u8 key, bool check_mask)
{
}
static inline int register_sysrq_key(u8 key, const struct sysrq_key_op *op)
{
return -EINVAL;
}
static inline int unregister_sysrq_key(u8 key, const struct sysrq_key_op *op)
{
return -EINVAL;
}
static inline int sysrq_mask(void)
{
return 0;
}
#endif
#endif