mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
Squashed commit of the following:
libc/semaphore: Add nxsem_getvalue() which is identical to sem_getvalue() except that it never modifies the errno variable. Changed all references to sem_getvalue in the OS to nxsem_getvalue().
sched/semaphore: Rename all internal private functions from sem_xyz to nxsem_xyz. The sem_ prefix is (will be) reserved only for the application semaphore interfaces.
libc/semaphore: Add nxsem_init() which is identical to sem_init() except that it never modifies the errno variable. Changed all references to sem_init in the OS to nxsem_init().
sched/semaphore: Rename sem_tickwait() to nxsem_tickwait() so that it is clear this is an internal OS function.
sched/semaphoate: Rename sem_reset() to nxsem_reset() so that it is clear this is an internal OS function.
This commit is contained in:
+2
-2
@@ -1948,8 +1948,8 @@ static int fat_bind(FAR struct inode *blkdriver, FAR const void *data,
|
||||
* have to addref() here (but does have to release in unbind().
|
||||
*/
|
||||
|
||||
fs->fs_blkdriver = blkdriver; /* Save the block driver reference */
|
||||
sem_init(&fs->fs_sem, 0, 0); /* Initialize the semaphore that controls access */
|
||||
fs->fs_blkdriver = blkdriver; /* Save the block driver reference */
|
||||
nxsem_init(&fs->fs_sem, 0, 0); /* Initialize the semaphore that controls access */
|
||||
|
||||
/* Then get information about the FAT32 filesystem on the devices managed
|
||||
* by this block driver.
|
||||
|
||||
Reference in New Issue
Block a user