Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
cod.c File Reference
#include <linux/types.h>
#include <dspbridge/host_os.h>
#include <linux/fs.h>
#include <linux/uaccess.h>
#include <dspbridge/dbdefs.h>
#include <dspbridge/dbll.h>
#include <dspbridge/cod.h>

Go to the source code of this file.

Data Structures

struct  cod_manager
 
struct  cod_libraryobj
 

Functions

void cod_close (struct cod_libraryobj *lib)
 
int cod_create (struct cod_manager **mgr, char *str_zl_file)
 
void cod_delete (struct cod_manager *cod_mgr_obj)
 
int cod_get_base_lib (struct cod_manager *cod_mgr_obj, struct dbll_library_obj **plib)
 
int cod_get_base_name (struct cod_manager *cod_mgr_obj, char *sz_name, u32 usize)
 
int cod_get_entry (struct cod_manager *cod_mgr_obj, u32 *entry_pt)
 
int cod_get_loader (struct cod_manager *cod_mgr_obj, struct dbll_tar_obj **loader)
 
int cod_get_section (struct cod_libraryobj *lib, char *str_sect, u32 *addr, u32 *len)
 
int cod_get_sym_value (struct cod_manager *cod_mgr_obj, char *str_sym, u32 *pul_value)
 
int cod_load_base (struct cod_manager *cod_mgr_obj, u32 num_argc, char *args[], cod_writefxn pfn_write, void *arb, char *envp[])
 
int cod_open (struct cod_manager *hmgr, char *sz_coff_path, u32 flags, struct cod_libraryobj **lib_obj)
 
int cod_open_base (struct cod_manager *hmgr, char *sz_coff_path, dbll_flags flags)
 
int cod_read_section (struct cod_libraryobj *lib, char *str_sect, char *str_content, u32 content_size)
 

Function Documentation

void cod_close ( struct cod_libraryobj lib)

Definition at line 177 of file cod.c.

int cod_create ( struct cod_manager **  mgr,
char str_zl_file 
)

Definition at line 196 of file cod.c.

void cod_delete ( struct cod_manager cod_mgr_obj)

Definition at line 252 of file cod.c.

int cod_get_base_lib ( struct cod_manager cod_mgr_obj,
struct dbll_library_obj **  plib 
)

Definition at line 273 of file cod.c.

int cod_get_base_name ( struct cod_manager cod_mgr_obj,
char sz_name,
u32  usize 
)

Definition at line 286 of file cod.c.

int cod_get_entry ( struct cod_manager cod_mgr_obj,
u32 entry_pt 
)

Definition at line 305 of file cod.c.

int cod_get_loader ( struct cod_manager cod_mgr_obj,
struct dbll_tar_obj **  loader 
)

Definition at line 317 of file cod.c.

int cod_get_section ( struct cod_libraryobj lib,
char str_sect,
u32 addr,
u32 len 
)

Definition at line 333 of file cod.c.

int cod_get_sym_value ( struct cod_manager cod_mgr_obj,
char str_sym,
u32 pul_value 
)

Definition at line 360 of file cod.c.

int cod_load_base ( struct cod_manager cod_mgr_obj,
u32  num_argc,
char args[],
cod_writefxn  pfn_write,
void arb,
char envp[] 
)

Definition at line 397 of file cod.c.

int cod_open ( struct cod_manager hmgr,
char sz_coff_path,
u32  flags,
struct cod_libraryobj **  lib_obj 
)

Definition at line 448 of file cod.c.

int cod_open_base ( struct cod_manager hmgr,
char sz_coff_path,
dbll_flags  flags 
)

Definition at line 479 of file cod.c.

int cod_read_section ( struct cod_libraryobj lib,
char str_sect,
char str_content,
u32  content_size 
)

Definition at line 513 of file cod.c.