ps2sdk  1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
loadfile.h File Reference
#include <tamtypes.h>
+ Include dependency graph for loadfile.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  t_ExecData
 

Macros

#define LF_PATH_MAX   252
 
#define LF_ARG_MAX   252
 
#define SCE_EBINDMISS   0x10000
 
#define SCE_ECALLMISS   0x10001
 
#define SCE_ELOADMISS   0x10003
 

Enumerations

enum  _lf_val_types {
  LF_VAL_BYTE = 0 ,
  LF_VAL_SHORT ,
  LF_VAL_LONG
}
 
enum  _lf_functions {
  LF_F_MOD_LOAD = 0 ,
  LF_F_ELF_LOAD ,
  LF_F_SET_ADDR ,
  LF_F_GET_ADDR ,
  LF_F_MG_MOD_LOAD ,
  LF_F_MG_ELF_LOAD ,
  LF_F_MOD_BUF_LOAD ,
  LF_F_MOD_STOP ,
  LF_F_MOD_UNLOAD ,
  LF_F_SEARCH_MOD_BY_NAME ,
  LF_F_SEARCH_MOD_BY_ADDRESS
}
 

Functions

int SifLoadFileInit (void)
 
void SifLoadFileExit (void)
 
int SifLoadModule (const char *path, int arg_len, const char *args)
 
int SifLoadStartModule (const char *path, int arg_len, const char *args, int *mod_res)
 
int SifLoadModuleEncrypted (const char *path, int arg_len, const char *args)
 
int SifLoadModuleBuffer (void *ptr, int arg_len, const char *args)
 
int SifLoadStartModuleBuffer (void *ptr, int arg_len, const char *args, int *mod_res)
 
int SifStopModule (int id, int arg_len, const char *args, int *mod_res)
 
int SifUnloadModule (int id)
 
int SifSearchModuleByName (const char *name)
 
int SifSearchModuleByAddress (const void *ptr)
 
int SifLoadElfPart (const char *path, const char *secname, t_ExecData *data)
 
int SifLoadElf (const char *path, t_ExecData *data)
 
int SifLoadElfEncrypted (const char *path, t_ExecData *data)
 
int SifIopSetVal (u32 iop_addr, int val, int type)
 
int SifIopGetVal (u32 iop_addr, void *val, int type)
 
int SifExecModuleBuffer (void *ptr, u32 size, u32 arg_len, const char *args, int *mod_res)
 
int SifExecModuleFile (const char *path, u32 arg_len, const char *args, int *mod_res)
 
int _SifLoadModule (const char *path, int arg_len, const char *args, int *modres, int fno, int dontwait)
 

Detailed Description

IOP executable file loader.

Definition in file loadfile.h.

Macro Definition Documentation

◆ LF_ARG_MAX

#define LF_ARG_MAX   252

Definition at line 22 of file loadfile.h.

◆ LF_PATH_MAX

#define LF_PATH_MAX   252

Definition at line 21 of file loadfile.h.

◆ SCE_EBINDMISS

#define SCE_EBINDMISS   0x10000

Could not bind with RPC server

Definition at line 59 of file loadfile.h.

◆ SCE_ECALLMISS

#define SCE_ECALLMISS   0x10001

Could not call the RPC function

Definition at line 61 of file loadfile.h.

◆ SCE_ELOADMISS

#define SCE_ELOADMISS   0x10003

ELF/Module load failed

Definition at line 63 of file loadfile.h.

Enumeration Type Documentation

◆ _lf_functions

Enumerator
LF_F_MOD_LOAD 
LF_F_ELF_LOAD 
LF_F_SET_ADDR 
LF_F_GET_ADDR 
LF_F_MG_MOD_LOAD 
LF_F_MG_ELF_LOAD 
LF_F_MOD_BUF_LOAD 
LF_F_MOD_STOP 
LF_F_MOD_UNLOAD 
LF_F_SEARCH_MOD_BY_NAME 
LF_F_SEARCH_MOD_BY_ADDRESS 

Definition at line 30 of file loadfile.h.

30  {
31  LF_F_MOD_LOAD = 0,
33 
36 
39 
41 
44 
47 };
@ LF_F_ELF_LOAD
Definition: loadfile.h:32
@ LF_F_SET_ADDR
Definition: loadfile.h:34
@ LF_F_MOD_UNLOAD
Definition: loadfile.h:43
@ LF_F_SEARCH_MOD_BY_NAME
Definition: loadfile.h:45
@ LF_F_GET_ADDR
Definition: loadfile.h:35
@ LF_F_MG_MOD_LOAD
Definition: loadfile.h:37
@ LF_F_MOD_BUF_LOAD
Definition: loadfile.h:40
@ LF_F_MOD_STOP
Definition: loadfile.h:42
@ LF_F_MG_ELF_LOAD
Definition: loadfile.h:38
@ LF_F_MOD_LOAD
Definition: loadfile.h:31
@ LF_F_SEARCH_MOD_BY_ADDRESS
Definition: loadfile.h:46

◆ _lf_val_types

Enumerator
LF_VAL_BYTE 
LF_VAL_SHORT 
LF_VAL_LONG 

Definition at line 24 of file loadfile.h.

24  {
25  LF_VAL_BYTE = 0,
28 };
@ LF_VAL_BYTE
Definition: loadfile.h:25
@ LF_VAL_LONG
Definition: loadfile.h:27
@ LF_VAL_SHORT
Definition: loadfile.h:26

Function Documentation

◆ SifSearchModuleByAddress()

int SifSearchModuleByAddress ( const void *  ptr)

◆ SifSearchModuleByName()

int SifSearchModuleByName ( const char *  name)

◆ SifStopModule()

int SifStopModule ( int  id,
int  arg_len,
const char *  args,
int *  mod_res 
)

◆ SifUnloadModule()

int SifUnloadModule ( int  id)