but I still don't know how to use it. I created the
struct tmpfs_args args and
size_t args_len = sizeof args variables to pass to data and data_len arguments in tmpfs_mount(). And the directory I'm mounting is "/tmp". So, I have 3 of 4 arguments needed to tmpfs_mount(), the last one is the
struct mount
*mp.
I know the mount() syscall takes
MOUNT_TMPFS as first argument, but I'm not understanding the magic behind
struct mount
mp and what I need to assign to the struct mount variable to pass it to that argument. Any hint?
Thanks for the help,
Bruno Melo.