View previous topic :: View next topic |
Author |
Message |
methos3
Joined: 01 Feb 2008 Posts: 89
|
Posted: Tue Aug 04, 2009 4:45 am Post subject: fioDread |
|
|
Hello again!
Someone know why we can use the fio functions (fioDread, fioOpen, etc etc) whihout using the fioInit() finction!? Even thought those functions, called from EE, are called by RPC?
And from what module is required to use those functions (looks like they come from nowhere, lol )
Thanks : ) |
|
Back to top |
|
|
jbit Site Admin
Joined: 28 May 2005 Posts: 293 Location: København, Danmark
|
Posted: Tue Aug 04, 2009 5:35 am Post subject: |
|
|
The SDK is open source you know... If you just looked at the top of the functions you'd see:
ps2sdk/ee/kernel/src/fileio.c
Code: | int fioDread(int fd, fio_dirent_t *buf)
{
struct _fio_dread_arg arg;
int res;
if ((res = fioInit()) < 0)
return res; |
The functions init the fio library themselves....
If I remember correctly the IRX which hosts the RPC server for these functions is called "FILEIO", but not 100% sure and can't check right now. |
|
Back to top |
|
|
methos3
Joined: 01 Feb 2008 Posts: 89
|
Posted: Tue Aug 04, 2009 7:21 am Post subject: |
|
|
Mmm...
Sorry, I looked the "fileio.c" file, including the fioDread() function, but didn't see this line before, sorry for that :(
I've looked into uLaunchelf code and it never loads a IRX called FILEIO, neither from EE memory or from "rom0:"; on the ps2sdk there is a IRX called fileXIO, but it doesn't seem to be needed for the fio functions. I was thinking if it's automatically loaded when the IOP is reset? |
|
Back to top |
|
|
jbit Site Admin
Joined: 28 May 2005 Posts: 293 Location: København, Danmark
|
Posted: Tue Aug 04, 2009 4:50 pm Post subject: |
|
|
Yes, FILEIO and related modules are almost always loaded on IOP reboot... |
|
Back to top |
|
|
methos3
Joined: 01 Feb 2008 Posts: 89
|
Posted: Wed Aug 05, 2009 6:43 am Post subject: |
|
|
Oh, I didn't know that IOP loads modules on reboot (maybe that's why I created this ttis topic :D )
Ok then, very thanks! In no time I will be posting here a network a MC dumper/flasher that I am developing using HDProject's mcdump.irx module.
Thanks and cya! |
|
Back to top |
|
|
|