Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
n_tracesink.c File Reference
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/ioctl.h>
#include <linux/tty.h>
#include <linux/tty_ldisc.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <asm-generic/bug.h>
#include "n_tracesink.h"

Go to the source code of this file.

Macros

#define RECEIVE_ROOM   65536
 
#define DRIVERNAME   "n_tracesink"
 

Functions

void n_tracesink_datadrain (u8 *buf, int count)
 
 EXPORT_SYMBOL_GPL (n_tracesink_datadrain)
 
 module_init (n_tracesink_init)
 
 module_exit (n_tracesink_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Jay Freyensee")
 
 MODULE_ALIAS_LDISC (N_TRACESINK)
 
 MODULE_DESCRIPTION ("Trace sink ldisc driver")
 

Macro Definition Documentation

#define DRIVERNAME   "n_tracesink"

Definition at line 46 of file n_tracesink.c.

#define RECEIVE_ROOM   65536

Definition at line 45 of file n_tracesink.c.

Function Documentation

EXPORT_SYMBOL_GPL ( n_tracesink_datadrain  )
MODULE_ALIAS_LDISC ( N_TRACESINK  )
MODULE_AUTHOR ( "Jay Freyensee"  )
MODULE_DESCRIPTION ( "Trace sink ldisc driver )
module_exit ( n_tracesink_exit  )
module_init ( n_tracesink_init  )
MODULE_LICENSE ( "GPL"  )
void n_tracesink_datadrain ( u8 buf,
int  count 
)

n_tracesink_datadrain() - Kernel API function used to route trace debugging data to user-defined port like USB.

: Trace debuging data buffer to write to tty target port. Null value will return with no write occurring. : Size of buf. Value of 0 or a negative number will return with no write occuring.

Caveat: If this line discipline does not set the tty it sits on top of via an open() call, this API function will not call the tty's write() call because it will have no pointer to call the write().

Definition at line 171 of file n_tracesink.c.