MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / dfs_is_mounted

Function dfs_is_mounted

components/dfs/dfs_v2/src/dfs_fs.c:515–525  ·  view source on GitHub ↗

* @brief Check if a mount point is mounted * * This function checks if the given mount point is mounted. It returns 0 if the mount point is mounted, * and -1 otherwise. * * @param[in] mnt The mount point to check * * @return int 0 if mounted, -1 otherwise */

Source from the content-addressed store, hash-verified

513 * @return int 0 if mounted, -1 otherwise
514 */
515int dfs_is_mounted(struct dfs_mnt *mnt)
516{
517 int ret = 0;
518
519 if (mnt && !(mnt->flags & MNT_IS_MOUNTED))
520 {
521 ret = -1;
522 }
523
524 return ret;
525}
526
527/**
528 * @brief Create a filesystem on the specified device

Callers 15

fstatFunction · 0.85
fstatfsFunction · 0.85
_try_readlinkFunction · 0.85
dfs_file_openFunction · 0.85
dfs_file_preadFunction · 0.85
dfs_file_readFunction · 0.85
dfs_file_pwriteFunction · 0.85
dfs_file_writeFunction · 0.85
dfs_file_lseekFunction · 0.85
dfs_file_statFunction · 0.85
dfs_file_lstatFunction · 0.85
dfs_file_setattrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected