forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

fioDread

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
methos3



Joined: 01 Feb 2008
Posts: 89

PostPosted: Tue Aug 04, 2009 4:45 am    Post subject: fioDread Reply with quote

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
View user's profile Send private message
jbit
Site Admin


Joined: 28 May 2005
Posts: 293
Location: København, Danmark

PostPosted: Tue Aug 04, 2009 5:35 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
methos3



Joined: 01 Feb 2008
Posts: 89

PostPosted: Tue Aug 04, 2009 7:21 am    Post subject: Reply with quote

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
View user's profile Send private message
jbit
Site Admin


Joined: 28 May 2005
Posts: 293
Location: København, Danmark

PostPosted: Tue Aug 04, 2009 4:50 pm    Post subject: Reply with quote

Yes, FILEIO and related modules are almost always loaded on IOP reboot...
Back to top
View user's profile Send private message Visit poster's website
methos3



Joined: 01 Feb 2008
Posts: 89

PostPosted: Wed Aug 05, 2009 6:43 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group