#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.
#define DRIVERNAME "n_tracesink" |
#define RECEIVE_ROOM 65536 |
MODULE_AUTHOR |
( |
"Jay Freyensee" |
| ) |
|
module_exit |
( |
n_tracesink_exit |
| ) |
|
module_init |
( |
n_tracesink_init |
| ) |
|
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.