[ECOS] newbee question: request for an example of jffs2 filesystem access from the application code
Mon Nov 8 11:39:00 GMT 2004
On Sun, 2004-11-07 at 18:54, Dave Rentoul wrote:
> This is a newbee question for sure :)
> What is the correct method for accessing the static functions inside the
> file system cyg_fstab_entry structure (cyg_fsop_open() etc) and the
> cyg_fileops_tag structure (cyg_fileop_write() etc) from the application
> some example application code showing the use of the filesystem open,
> file read and file write functions would be fantastic.
Your user code should not call these functions. Simply mount the
JFFS2 file system, then use the normal POSIX open/close/read/write
Look at the JFFS2 test programs (in the eCos source tree) for examples.
Gary Thomas <firstname.lastname@example.org>
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss