~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/include/linux/sysrq.h

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* -*- linux-c -*-
  2  *
  3  *      $Id: sysrq.h,v 1.3 1997/07/17 11:54:33 mj Exp $
  4  *
  5  *      Linux Magic System Request Key Hacks
  6  *
  7  *      (c) 1997 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
  8  */
  9 
 10 #include <linux/config.h>
 11 
 12 struct pt_regs;
 13 struct kbd_struct;
 14 struct tty_struct;
 15 
 16 /* Generic SysRq interface -- you may call it from any device driver, supplying
 17  * ASCII code of the key, pointer to registers and kbd/tty structs (if they
 18  * are available -- else NULL's).
 19  */
 20 
 21 void handle_sysrq(int, struct pt_regs *, struct kbd_struct *, struct tty_struct *);
 22 
 23 /* Deferred actions */
 24 
 25 extern int emergency_sync_scheduled;
 26 
 27 #define EMERG_SYNC 1
 28 #define EMERG_REMOUNT 2
 29 
 30 void do_emergency_sync(void);
 31 
 32 #ifdef CONFIG_MAGIC_SYSRQ
 33 #define CHECK_EMERGENCY_SYNC                    \
 34         if (emergency_sync_scheduled)           \
 35                 do_emergency_sync();
 36 #else
 37 #define CHECK_EMERGENCY_SYNC
 38 #endif
 39 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.