TwiceAsNice  2019-02-18
Macros | Functions | Variables
tx.c File Reference
#include <errno.h>
#include <sched.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <sys/time.h>
#include "main.h"
Include dependency graph for tx.c:

Macros

#define _2M   (2L * 1024 * 1024)
 
#define _8M   (8L * 1024 * 1024)
 

Functions

static void _format_num (char *buf, long long l)
 
static int _show_num_factor (char *buf, unsigned long long ul)
 
static int _prefill_fifo (int fd)
 
static int _tx_data (int fd, void *buf, size_t size, int seconds, int scan, __s32 value)
 
static int _tx_data_scan_almost_size (int fd, size_t size, int seconds, __s32 scan)
 
static int _tx_data_scan_write_size (int fd, int seconds)
 
int tx_rate (int fd, __s32 io_mode, int seconds, int scan)
 

Variables

static __u8 _buffer [_8M]
 

Macro Definition Documentation

◆ _2M

#define _2M   (2L * 1024 * 1024)

◆ _8M

#define _8M   (8L * 1024 * 1024)

Function Documentation

◆ _format_num()

static void _format_num ( char *  buf,
long long  l 
)
static

◆ _prefill_fifo()

static int _prefill_fifo ( int  fd)
static

◆ _show_num_factor()

static int _show_num_factor ( char *  buf,
unsigned long long  ul 
)
static

◆ _tx_data()

static int _tx_data ( int  fd,
void *  buf,
size_t  size,
int  seconds,
int  scan,
__s32  value 
)
static

◆ _tx_data_scan_almost_size()

static int _tx_data_scan_almost_size ( int  fd,
size_t  size,
int  seconds,
__s32  scan 
)
static

◆ _tx_data_scan_write_size()

static int _tx_data_scan_write_size ( int  fd,
int  seconds 
)
static

◆ tx_rate()

int tx_rate ( int  fd,
__s32  io_mode,
int  seconds,
int  scan 
)

Variable Documentation

◆ _buffer

__u8 _buffer[_8M]
static