This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: newbee question: request for an example of jffs2filesystem access from the application code


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]