<< Previous | Next >> | |
|
FSLXnum fs_get_ram_lx( void );
Description
- Return the logical extent number of the RAM file system device. This is only available if you have defined
FS2_RAM_RESERVE
to a non-zero number of bytes in the BIOS.
- A RAM filesystem is only really useful if you have battery-backed SRAM on the board. You can still use a RAM file system on volatile RAM, but of course files will not persist over power cycles and you should explicitly format the RAM filesystem at power-up.
- The sample program
Samples\FILESYSTEM\FS2INFO.C
demonstrates use of this function.
- This function may be called before calling
fs_init()
.Return value
0
: There is no RAM filesystem available.
!0
: Logical extent number of the RAM device.Library
- FS2.LIB
See also
- fs_get_flash_lx (FS2), fs_get_other_lx (FS2)
Dynamic C Functions | << Previous | Next >> | rabbit.com |