MTD read-ahear/write buffering layer seems functional

This commit is contained in:
Gregory Nutt
2014-09-25 13:35:10 -06:00
parent a5bc26db4a
commit b33f8b3013
4 changed files with 74 additions and 39 deletions
+4 -2
View File
@@ -124,8 +124,8 @@ static int bch_open(FAR struct file *filep)
{
bch->refs++;
}
bchlib_semgive(bch);
bchlib_semgive(bch);
return OK;
}
@@ -162,8 +162,8 @@ static int bch_close(FAR struct file *filep)
{
bch->refs--;
}
bchlib_semgive(bch);
bchlib_semgive(bch);
return ret;
}
@@ -212,6 +212,7 @@ static ssize_t bch_write(FAR struct file *filep, FAR const char *buffer, size_t
{
filep->f_pos += len;
}
bchlib_semgive(bch);
}
@@ -248,6 +249,7 @@ static int bch_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
bch->refs++;
*bchr = bch;
}
bchlib_semgive(bch);
}
#if defined(CONFIG_BCH_ENCRYPTION)