Searched refs:lockid (Results 1 – 2 of 2) sorted by relevance
3418 fp->obj.lockid = inc_share(&dj, (mode & ~FA_READ) ? 1 : 0); /* Lock the file for this session */ in f_open()3419 if (fp->obj.lockid == 0) res = FR_INT_ERR; in f_open()3453 dec_share(fp->obj.lockid); in f_open()3518 if (res != FR_OK) dec_share(fp->obj.lockid); /* Decrement file open counter if seek failed */ in f_open()3873 res = dec_share(fp->obj.lockid); /* Decrement file open counter */ in f_close()4244 dp->obj.lockid = inc_share(dp, 0); /* Lock the sub directory */ in f_opendir()4245 if (!dp->obj.lockid) res = FR_TOO_MANY_OPEN_FILES; in f_opendir()4247 dp->obj.lockid = 0; /* Root directory need not to be locked */ in f_opendir()4279 if (dp->obj.lockid) res = dec_share(dp->obj.lockid); /* Decrement sub-directory open counter */ in f_closedir()
280 UINT lockid; /* File lock ID origin from 1 (index of file semaphore table Files[]) */ member