diff options
Diffstat (limited to 'src/sys/include/sys/mount.h')
-rw-r--r-- | src/sys/include/sys/mount.h | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/src/sys/include/sys/mount.h b/src/sys/include/sys/mount.h index 4e39279..6d041ee 100644 --- a/src/sys/include/sys/mount.h +++ b/src/sys/include/sys/mount.h @@ -31,22 +31,32 @@ #define _SYS_MOUNT_H_ #include <sys/queue.h> +#include <sys/syscall.h> #include <sys/types.h> +#if defined(_KERNEL) #include <os/vnode.h> +#endif /* defined(_KERNEL) */ -#if defined(_KERNEL) +/* + * Mount filesystem string names + */ +#define MOUNT_INITRD "initrd" /* Initial ramdisk */ +#define MOUNT_DEVFS "devfs" /* Device filesystem */ /* - * Number of bytes allowed in a filesystem - * name including the null termination + * The mount system call */ -#define FSNAME_MAX 16 +int mount( + const char *source, const char *target, const char *fstype, + unsigned long mountflags, void *data +); +#if defined(_KERNEL) /* - * Mount filesystem string names + * Number of bytes allowed in a filesystem + * name including the null termination */ -#define MOUNT_INITRD "initrd" /* Initial ramdisk */ -#define MOUNT_DEVFS "devfs" /* Device filesystem */ +#define FSNAME_MAX 16 /* Forward declarations */ struct fs_info; @@ -155,7 +165,7 @@ int mount_lookup(const char *name, struct mount **mp_res); * Returns zero on success, otherwise a less than zero * failure upon failure. */ -int mount(struct mount_args *margs, uint32_t flags); +int kmount(struct mount_args *margs, uint32_t flags); /* * Initialize a mountpoint to a known state @@ -178,5 +188,10 @@ int mountlist_init(struct mountlist *mlp); */ int mount_alloc(const char *name, struct mount **mp_res); +/* + * Mount system call + */ +scret_t sys_mount(struct syscall_args *scargs); + #endif /* !_KERNEL */ #endif /* !_SYS_MOUNT_H_ */ |