Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
mconsole.h File Reference
#include <stdint.h>
#include <sysdep/ptrace.h>

Go to the source code of this file.

Data Structures

struct  mconsole_request
 
struct  mconsole_reply
 
struct  mconsole_notify
 
struct  mconsole_command
 
struct  mc_request
 

Macros

#define u32   uint32_t
 
#define MCONSOLE_MAGIC   (0xcafebabe)
 
#define MCONSOLE_MAX_DATA   (512)
 
#define MCONSOLE_VERSION   2
 

Enumerations

enum  mc_context { MCONSOLE_INTR, MCONSOLE_PROC }
 

Functions

int mconsole_unlink_socket (void)
 
int mconsole_reply_len (struct mc_request *req, const char *reply, int len, int err, int more)
 
int mconsole_reply (struct mc_request *req, const char *str, int err, int more)
 
void mconsole_version (struct mc_request *req)
 
void mconsole_help (struct mc_request *req)
 
void mconsole_halt (struct mc_request *req)
 
void mconsole_reboot (struct mc_request *req)
 
void mconsole_config (struct mc_request *req)
 
void mconsole_remove (struct mc_request *req)
 
void mconsole_sysrq (struct mc_request *req)
 
void mconsole_cad (struct mc_request *req)
 
void mconsole_stop (struct mc_request *req)
 
void mconsole_go (struct mc_request *req)
 
void mconsole_log (struct mc_request *req)
 
void mconsole_proc (struct mc_request *req)
 
void mconsole_stack (struct mc_request *req)
 
int mconsole_get_request (int fd, struct mc_request *req)
 
int mconsole_notify (char *sock_name, int type, const void *data, int len)
 
charmconsole_notify_socket (void)
 
void lock_notify (void)
 
void unlock_notify (void)
 

Variables

char mconsole_socket_name []
 

Macro Definition Documentation

#define MCONSOLE_MAGIC   (0xcafebabe)

Definition at line 17 of file mconsole.h.

#define MCONSOLE_MAX_DATA   (512)

Definition at line 18 of file mconsole.h.

#define MCONSOLE_VERSION   2

Definition at line 19 of file mconsole.h.

#define u32   uint32_t

Definition at line 12 of file mconsole.h.

Enumeration Type Documentation

enum mc_context
Enumerator:
MCONSOLE_INTR 
MCONSOLE_PROC 

Definition at line 46 of file mconsole.h.

Function Documentation

void lock_notify ( void  )

Definition at line 794 of file mconsole_kern.c.

void mconsole_cad ( struct mc_request req)

Definition at line 211 of file mconsole_kern.c.

void mconsole_config ( struct mc_request req)

Definition at line 470 of file mconsole_kern.c.

int mconsole_get_request ( int  fd,
struct mc_request req 
)

Definition at line 79 of file mconsole_user.c.

void mconsole_go ( struct mc_request req)

Definition at line 217 of file mconsole_kern.c.

void mconsole_halt ( struct mc_request req)

Definition at line 199 of file mconsole_kern.c.

void mconsole_help ( struct mc_request req)

Definition at line 194 of file mconsole_kern.c.

void mconsole_log ( struct mc_request req)

Definition at line 112 of file mconsole_kern.c.

int mconsole_notify ( char sock_name,
int  type,
const void data,
int  len 
)

Definition at line 179 of file mconsole_user.c.

char* mconsole_notify_socket ( void  )

Definition at line 856 of file mconsole_kern.c.

void mconsole_proc ( struct mc_request req)

Definition at line 124 of file mconsole_kern.c.

void mconsole_reboot ( struct mc_request req)

Definition at line 205 of file mconsole_kern.c.

void mconsole_remove ( struct mc_request req)

Definition at line 496 of file mconsole_kern.c.

int mconsole_reply ( struct mc_request req,
const char str,
int  err,
int  more 
)

Definition at line 165 of file mconsole_user.c.

int mconsole_reply_len ( struct mc_request req,
const char reply,
int  len,
int  err,
int  more 
)

Definition at line 126 of file mconsole_user.c.

void mconsole_stack ( struct mc_request req)

Definition at line 661 of file mconsole_kern.c.

void mconsole_stop ( struct mc_request req)

Definition at line 222 of file mconsole_kern.c.

void mconsole_sysrq ( struct mc_request req)

Definition at line 640 of file mconsole_kern.c.

int mconsole_unlink_socket ( void  )

Definition at line 171 of file mconsole_user.c.

void mconsole_version ( struct mc_request req)

Definition at line 102 of file mconsole_kern.c.

void unlock_notify ( void  )

Definition at line 799 of file mconsole_kern.c.

Variable Documentation

char mconsole_socket_name[]

Definition at line 38 of file mconsole_user.c.