]>
git.ipfire.org Git - people/ms/linux.git/blob - fs/init.c
1 // SPDX-License-Identifier: GPL-2.0
3 * Routines that mimic syscalls, but don't use the user address space or file
4 * descriptors. Only for init/ and related early init code.
6 #include <linux/init.h>
7 #include <linux/mount.h>
8 #include <linux/namei.h>
10 #include <linux/init_syscalls.h>
13 int __init
init_mount(const char *dev_name
, const char *dir_name
,
14 const char *type_page
, unsigned long flags
, void *data_page
)
19 ret
= kern_path(dir_name
, LOOKUP_FOLLOW
, &path
);
22 ret
= path_mount(dev_name
, &path
, type_page
, flags
, data_page
);