Functions | Variables

rdwrmem.c File Reference

#include <sys/mman.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <malloc.h>
#include <string.h>
#include <byteswap.h>
#include <getopt.h>
#include <inttypes.h>
Include dependency graph for rdwrmem.c:

Functions

int mem_dump (void *buf, unsigned long start, unsigned long len, int blen)
int mem_fill (void *buf, unsigned long start, unsigned long len, unsigned char *pat_val, int pat_len, int blen)
int si_long (char **ps, long *val, int base)
int add_to_arr (void **pdata, int *plen, int base, char *str, int blen)
int main (int argc, char *argv[])

Variables

char * memdev = "/dev/mem"
int write_flg
int dump_flg = 0
int fill_flg
void * fill_pat_val
int fill_pat_len
char * file_format = NULL
int nommap_flg = 0
int blockmode = 0
int erase_block = -1
int mem_type = 0
unsigned long mem_start = 0
unsigned long mem_length = 0
unsigned long mem_offs = 0

Function Documentation

int add_to_arr ( void **  pdata,
int *  plen,
int  base,
char *  str,
int  blen 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( int  argc,
char *  argv[] 
)

Here is the call graph for this function:

int mem_dump ( void *  buf,
unsigned long  start,
unsigned long  len,
int  blen 
)

Here is the caller graph for this function:

int mem_fill ( void *  buf,
unsigned long  start,
unsigned long  len,
unsigned char *  pat_val,
int  pat_len,
int  blen 
)

Here is the caller graph for this function:

int si_long ( char **  ps,
long *  val,
int  base 
)

Here is the caller graph for this function:


Variable Documentation

int blockmode = 0
int dump_flg = 0
int erase_block = -1
char* file_format = NULL
int fill_flg
void* fill_pat_val
unsigned long mem_length = 0
unsigned long mem_offs = 0
unsigned long mem_start = 0
int mem_type = 0
char* memdev = "/dev/mem"
int nommap_flg = 0
int write_flg