Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
ctrlchar.c File Reference
#include <linux/stddef.h>
#include <asm/errno.h>
#include <linux/sysrq.h>
#include <linux/ctype.h>
#include "ctrlchar.h"

Go to the source code of this file.

Functions

unsigned int ctrlchar_handle (const unsigned char *buf, int len, struct tty_struct *tty)
 

Function Documentation

unsigned int ctrlchar_handle ( const unsigned char buf,
int  len,
struct tty_struct tty 
)

Check for special chars at start of input.

Parameters
bufConsole input buffer.
lenLength of valid data in buffer.
ttyThe tty struct for this console.
Returns
CTRLCHAR_NONE, if nothing matched, CTRLCHAR_SYSRQ, if sysrq was encountered otherwise char to be inserted logically or'ed with CTRLCHAR_CTRL

Definition at line 41 of file ctrlchar.c.