13.07.2015 Views

PDF version - ARM Information Center

PDF version - ARM Information Center

PDF version - ARM Information Center

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Getting Started with Real-Time System Models2.8 Virtual filesystemThe Virtual FileSystem (VFS) allows your target to access parts of a host filesystem. This accessis achieved through a target OS-specific driver and a memory mapped device called theMessageBox. When using the VFS, access to the host filesystem is analogous to access to ashared network drive, and can be expected to behave in the same way.This section contains the following sections:• VFS operations• Using the VFS with a pre-built RTSM on page 2-17.This section does not cover the process for adding the VFS component to your model system,but instead on how the end user interacts with the VFS. If you need to build your own systemincluding the VFS, see the Fast Models Reference Manual. See also the WritingADriver.txt filein %PVLIB_HOME%\VFS\docs\.NoteVFS support is only provided by VE RTSM models. MPS RTSM models do not support VFSfunctionality.2.8.1 VFS operationsThe VFS supports the following filesystem operations:getattr retrieves metadata for the file, directory or symbolic linkmkdir creates a new directoryremove removes a file, directory or symbolic linkrename renames a file, directory or symbolic linkrmdir removes an empty directorysetattr sets metadata for the file, directory or symbolic link.Notesetattr is not currently implemented.Symbolic links are not currently supported. Hard links cannot be created by the model but hardlinks created by the host operating system will function correctly.The VFS supports the following mount points:closemountsfrees the iterator handle returned from openmountsopenmountsretrieves an iterator handle for the list of available mountsreadmounts reads one entry from the mount iterator ID.The VFS supports the following directory iterators:closedir frees a directory iterator handle retrieved by opendiropendir retrieves an iterator handle for the directory specifiedreaddir reads the next entry from the directory iterator.NoteDatestamps returned are in milliseconds elapsed since the VFS epoch of January 01 1970 00:00UTC and are host datestamps. The host datestamp might be in the future relative to the simulatedOS datestamp.<strong>ARM</strong> DUI 0575A Copyright © 2011 <strong>ARM</strong>. All rights reserved. 2-16ID051811Non-Confidential

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!