Vhex-kernel/src/kernel/fs/smemfs/power_graphic_2/filesystem/mount.c

22 lines
472 B
C

#include <kernel/fs/smemfs.h>
#include <kernel/util/atomic.h>
/* casio_smem_mount() - Mount the file system (sync) */
void *smemfs_USB2_mount(void)
{
extern struct smemfs_USB2_superblock smemfs_USB2_superblock;
void *root_inode;
// Start atomic operation
atomic_start();
// Get root inode
root_inode = smemfs_USB2_superblock.sector_table;
// Stop atomic operation
atomic_stop();
// Return the sector table to simulate the root inode.
return (root_inode);
}