/* this function will return the mounted path for specified device. */
const char* dfs_mnt_get_mounted_path(struct rt_device *device)
/* this function will return the mounted path for specified device. */
const char* dfs_mnt_get_mounted_path(struct rt_device *device)
{
    const char* path = RT_NULL;
    if (_root_mnt)
    {
        struct dfs_mnt* mnt;
        dfs_lock();
        mnt = _dfs_mnt_foreach(_root_mnt, _mnt_cmp_devid, device);
        dfs_unlock();
        if (mnt) path = mnt->fullpath;
    }
    return path;
}