mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +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:
@@ -3288,7 +3288,7 @@ int mmcsd_slotinitialize(int minor, FAR struct sdio_dev_s *dev)
|
||||
/* Initialize the MMC/SD state structure */
|
||||
|
||||
memset(priv, 0, sizeof(struct mmcsd_state_s));
|
||||
sem_init(&priv->sem, 0, 1);
|
||||
nxsem_init(&priv->sem, 0, 1);
|
||||
|
||||
/* Bind the MMCSD driver to the MMCSD state structure */
|
||||
|
||||
|
||||
@@ -1933,7 +1933,7 @@ int mmcsd_spislotinitialize(int minor, int slotno, FAR struct spi_dev_s *spi)
|
||||
|
||||
slot = &g_mmcsdslot[slotno];
|
||||
memset(slot, 0, sizeof(struct mmcsd_slot_s));
|
||||
sem_init(&slot->sem, 0, 1);
|
||||
nxsem_init(&slot->sem, 0, 1);
|
||||
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
if (slot->spi)
|
||||
|
||||
Reference in New Issue
Block a user