unlock_fs() is only used within FatFs.
 
Symbols
loading...
Files
loading...

unlock_fs() function

Syntax

static void unlock_fs (     FATFS* fs,     FRESULT res );

Arguments

fs

res

References

LocationReferrerText
ff.c:751
void unlock_fs (
ff.c:3230validate()
unlock_fs(obj->fs, FR_OK);
ff.c:3298f_mount()
LEAVE_FF(fs, res);
ff.c:3331f_open()
ff.c:3501f_open()
LEAVE_FF(fs, res);
ff.c:3528f_read()
if (res != FR_OK || (res = (FRESULT)fp->err) != FR_OK) LEAVE_FF(fs, res); /* Check validity */
ff.c:3529f_read()
if (!(fp->flag & FA_READ)) LEAVE_FF(fs, FR_DENIED); /* Check access mode */
ff.c:3550f_read()
if (clst < 2) ABORT(fs, FR_INT_ERR);
ff.c:3551f_read()
if (clst == 0xFFFFFFFF) ABORT(fs, FR_DISK_ERR);
ff.c:3555f_read()
if (!sect) ABORT(fs, FR_INT_ERR);
ff.c:3562f_read()
if (disk_read(fs->drv, rbuff, sect, cc) != RES_OK) ABORT(fs, FR_DISK_ERR);
ff.c:3581f_read()
if (disk_write(fs->drv, fp->buf, fp->sect, 1) != RES_OK) ABORT(fs, FR_DISK_ERR);
ff.c:3585f_read()
if (disk_read(fs->drv, fp->buf, sect, 1) != RES_OK) ABORT(fs, FR_DISK_ERR); /* Fill sector cache */
ff.c:3600f_read()
ff.c:3627f_write()
if (res != FR_OK || (res = (FRESULT)fp->err) != FR_OK) LEAVE_FF(fs, res); /* Check validity */
ff.c:3628f_write()
if (!(fp->flag & FA_WRITE)) LEAVE_FF(fs, FR_DENIED); /* Check access mode */
ff.c:3656f_write()
if (clst == 1) ABORT(fs, FR_INT_ERR);
ff.c:3657f_write()
if (clst == 0xFFFFFFFF) ABORT(fs, FR_DISK_ERR);
ff.c:3665f_write()
if (disk_write(fs->drv, fp->buf, fp->sect, 1) != RES_OK) ABORT(fs, FR_DISK_ERR);
ff.c:3670f_write()
if (!sect) ABORT(fs, FR_INT_ERR);
ff.c:3677f_write()
if (disk_write(fs->drv, wbuff, sect, cc) != RES_OK) ABORT(fs, FR_DISK_ERR);
ff.c:3703f_write()
ff.c:3722f_write()
ff.c:3750f_sync()
if (disk_write(fs->drv, fp->buf, fp->sect, 1) != RES_OK) LEAVE_FF(fs, FR_DISK_ERR);
ff.c:3801f_sync()
LEAVE_FF(fs, res);
ff.c:3835f_close()
unlock_fs(fs, FR_OK); /* Unlock volume */
ff.c:4021f_lseek()
if (res != FR_OK) LEAVE_FF(fs, res);
ff.c:4036f_lseek()
if (cl <= 1) ABORT(fs, FR_INT_ERR);
ff.c:4037f_lseek()
if (cl == 0xFFFFFFFF) ABORT(fs, FR_DISK_ERR);
ff.c:4056f_lseek()
if (!dsc) ABORT(fs, FR_INT_ERR);
ff.c:4062f_lseek()
if (disk_write(fs->drv, fp->buf, fp->sect, 1) != RES_OK) ABORT(fs, FR_DISK_ERR);
ff.c:4066f_lseek()
if (disk_read(fs->drv, fp->buf, dsc, 1) != RES_OK) ABORT(fs, FR_DISK_ERR); /* Load current sector */
ff.c:4097f_lseek()
if (clst == 1) ABORT(fs, FR_INT_ERR);
ff.c:4098f_lseek()
if (clst == 0xFFFFFFFF) ABORT(fs, FR_DISK_ERR);
ff.c:4122f_lseek()
if (clst == 0xFFFFFFFF) ABORT(fs, FR_DISK_ERR);
ff.c:4123f_lseek()
if (clst <= 1 || clst >= fs->n_fatent) ABORT(fs, FR_INT_ERR);
ff.c:4129f_lseek()
if (!nsect) ABORT(fs, FR_INT_ERR);
ff.c:4142f_lseek()
if (disk_write(fs->drv, fp->buf, fp->sect, 1) != RES_OK) ABORT(fs, FR_DISK_ERR);
ff.c:4146f_lseek()
if (disk_read(fs->drv, fp->buf, nsect, 1) != RES_OK) ABORT(fs, FR_DISK_ERR); /* Fill sector cache */
ff.c:4152f_lseek()
LEAVE_FF(fs, res);
ff.c:4180f_opendir()
ff.c:4222f_opendir()
LEAVE_FF(fs, res);
ff.c:4252f_closedir()
unlock_fs(fs, FR_OK); /* Unlock volume */
ff.c:4280f_readdir()
ff.c:4291f_readdir()
LEAVE_FF(fs, res);
ff.c:4366f_stat()
INIT_NAMBUF(dj.obj.fs);
ff.c:4378f_stat()
LEAVE_FF(dj.obj.fs, res);
ff.c:4465f_getfree()
LEAVE_FF(fs, res);
ff.c:4485f_truncate()
if (res != FR_OK || (res = (FRESULT)fp->err) != FR_OK) LEAVE_FF(fs, res);
ff.c:4486f_truncate()
if (!(fp->flag & FA_WRITE)) LEAVE_FF(fs, FR_DENIED); /* Check access mode */
ff.c:4512f_truncate()
if (res != FR_OK) ABORT(fs, res);
ff.c:4515f_truncate()
LEAVE_FF(fs, res);
ff.c:4543f_unlink()
ff.c:4610f_unlink()
LEAVE_FF(fs, res);
ff.c:4637f_mkdir()
ff.c:4707f_mkdir()
LEAVE_FF(fs, res);
ff.c:4734f_rename()
ff.c:4810f_rename()
LEAVE_FF(fs, res);