MCPcopy Create free account
hub / github.com/F-Stack/f-stack / linker_root_mounted

Function linker_root_mounted

freebsd/kern/kern_linker.c:2067–2080  ·  view source on GitHub ↗

check if root file system is not mounted */

Source from the content-addressed store, hash-verified

2065
2066/* check if root file system is not mounted */
2067static bool
2068linker_root_mounted(void)
2069{
2070 struct pwd *pwd;
2071 bool ret;
2072
2073 if (rootvnode == NULL)
2074 return (false);
2075
2076 pwd = pwd_hold(curthread);
2077 ret = pwd->pwd_rdir != NULL;
2078 pwd_drop(pwd);
2079 return (ret);
2080}
2081
2082/*
2083 * Find a file which contains given module and load it, if "parent" is not

Callers 1

linker_load_moduleFunction · 0.85

Calls 2

pwd_holdFunction · 0.85
pwd_dropFunction · 0.85

Tested by

no test coverage detected