Reputation: 402
The expected steps is somewhat like (let's assume we only target Linux, for simplicity):
So, the gist of this question is inside points (2) and (3) above.
Thanks in advance.
Upvotes: 0
Views: 425
Reputation: 5557
What you are looking for is FUSE
- Filesystem in Userspace.
FUSE allows you to create a file system that will be exported by the application running in the user space (no need for kernel modules).
Following is link toward the hello world FUSE example, and will be a good starting pint.
You will need to create custom functions as follows:
readdir
function should return the files that are located in the virtual directory,open
and read
should provide the content of the filesgetattr
should provides the file attributes andinit
will be called by FUSE to initialize the resources for the FSFUSE is *nix library available for Linux and macOS.
Upvotes: 1
Reputation: 5923
Keyword: Shared Memory Objects
Have a look at shm_open.
Upvotes: 1