TwiceAsNice
2019-02-18
|
#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"
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] |
#define _2M (2L * 1024 * 1024) |
#define _8M (8L * 1024 * 1024) |
|
static |
|
static |
|
static |
|
static |
int tx_rate | ( | int | fd, |
__s32 | io_mode, | ||
int | seconds, | ||
int | scan | ||
) |
|
static |