Mounting filesystem image from physical memory in C


I'm booting linux with my own init executable which is written in C. As a part of my init process, I want to mount a custom filesystem image which was preloaded to the physical memory (let's say at address 0xFFFF0000).

The type of the filesystem image can be changed to whatever will work, as far as it has POSIX (like ext4).

How can I mount the image successfully entirely from physical memory using C code?

What I've tried:

Note: I've enabled loop devices for my system if needed

asked on Stack Overflow Oct 14, 2020 by Dniel BV • edited Oct 14, 2020 by Dniel BV

0 Answers

Nobody has answered this question yet.

User contributions licensed under CC BY-SA 3.0