Log in

View Full Version : Flash memory available?


biojae
07-03-2010, 22:46
Is there a function that allows us to find out how much space in flash memory is free and is available for other files (ie camera images) in vxworks?

jhersh
08-03-2010, 02:04
Is there a function that allows us to find out how much space in flash memory is free and is available for other files (ie camera images) in vxworks?

relFsShow ("/c");

biojae
08-03-2010, 02:23
relFsShow ("/c");


And this returns a struct of type STATUS?
What variables are in that struct?

jhersh
08-03-2010, 02:33
And this returns a struct of type STATUS?
What variables are in that struct?

This function prints to stdout... the status is what you would expect from an application in a shell... i.e. 0 == success non-0 == failure.

-Joe

byteit101
08-03-2010, 16:49
This function prints to stdout... the status is what you would expect from an application in a shell... i.e. 0 == success non-0 == failure.

-Joe

are you saying we have to redirect stdout?

jhersh
08-03-2010, 19:13
are you saying we have to redirect stdout?

If you need to do this from within your program and you were going to use this entry-point, then yes... I was thinking you would call it from the console to find out.

I'll do some more research to find the entry-point that is designed to be called from within your application.

-Joe