IMFS usage
Joel Sherrill
joel at rtems.org
Thu May 17 14:58:52 UTC 2018
On Thu, May 17, 2018, 9:51 AM Matthew J Fletcher <amimjf at gmail.com> wrote:
> Hi,
>
> I've not been able to find a clear guide on how to setup/use an IMFS
> filesystem. I wish to mount this to use a separate volatile memory area,
> not as a root filesystem.
>
>
> There is some incomplete documentation here, https://docs.rtems.org/
> branches/master/filesystem/in-memory.html and the imfs.h header has some
> helpful comments.
>
> I guess its some combination of.
>
> IMFS_initialize
> IMFS_mount
>
> but i have also seen code that does,..
>
> mount_and_make_target_path(NULL, mnt, RTEMS_FILESYSTEM_TYPE_IMFS,
> RTEMS_FILESYSTEM_READ_WRITE, &mount_data);
>
> Is there a clear example anywhere ?
>
The IMFS uses malloc for disk blocks so that might have to be addressed for
your use cases.
Look at testsuites/fstests/mimfs_support and the tests that use that.
--joel
>
> --
>
> regards
> ---
> Matthew J Fletcher
>
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20180517/9003d6a0/attachment-0002.html>
More information about the users
mailing list