This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: newbee question: request for an example of jffs2filesystem access from the application code
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Dave Rentoul <drentoul at elands dot co dot nz>
- Cc: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Mon, 08 Nov 2004 04:24:49 -0700
- Subject: Re: [ECOS] newbee question: request for an example of jffs2filesystem access from the application code
- Organization: MLB Associates
- References: <418ED1DF.8050801@elands.co.nz>
On Sun, 2004-11-07 at 18:54, Dave Rentoul wrote:
> Hi,
>
> 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
> code?
>
> 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
functions.
Look at the JFFS2 test programs (in the eCos source tree) for examples.
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss