UbixOS  2.0
mount.c File Reference
#include <vfs/mount.h>
#include <ubixos/vitals.h>
#include <ubixos/kpanic.h>
#include <lib/kmalloc.h>
#include <lib/kprintf.h>
#include <string.h>
#include <sys/device.h>
Include dependency graph for mount.c:

Go to the source code of this file.

Functions

int vfs_addMount (struct vfs_mountPoint *mp)
 
struct vfs_mountPointvfs_findMount (char *mountPoint)
 
int vfs_mount (int major, int minor, int partition, int vfsType, char *mountPoint, char *perms)
 

Function Documentation

◆ vfs_addMount()

int vfs_addMount ( struct vfs_mountPoint mp)

Definition at line 102 of file mount.c.

References vitalsStruct::mountPoints, vfs_mountPoint::next, vfs_mountPoint::prev, and systemVitals.

Referenced by vfs_mount().

◆ vfs_findMount()

struct vfs_mountPoint* vfs_findMount ( char *  mountPoint)

Definition at line 128 of file mount.c.

References vfs_mountPoint::mountPoint, vitalsStruct::mountPoints, vfs_mountPoint::next, NULL, strcmp(), and systemVitals.

Referenced by fopen().

Here is the call graph for this function:

◆ vfs_mount()

int vfs_mount ( int  major,
int  minor,
int  partition,
int  vfsType,
char *  mountPoint,
char *  perms 
)