mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
sched/: Make more naming consistent
Rename various functions per the quidelines of https://cwiki.apache.org/confluence/display/NUTTX/Naming+of+OS+Internal+Functions nxsem_setprotocol -> nxsem_set_protocol nxsem_getprotocol -> nxsem_get_protocol nxsem_getvalue -> nxsem_get_value
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
d938b50969
commit
a569006fd8
@@ -1424,7 +1424,7 @@ static void cmd_queue_init(void)
|
||||
UNUSED(ret);
|
||||
|
||||
nxsem_init(&g_btdev.ncmd_sem, 0, 1);
|
||||
nxsem_setprotocol(&g_btdev.ncmd_sem, SEM_PRIO_NONE);
|
||||
nxsem_set_protocol(&g_btdev.ncmd_sem, SEM_PRIO_NONE);
|
||||
|
||||
g_btdev.ncmd = 1;
|
||||
pid = kthread_create("BT HCI Tx", CONFIG_BLUETOOTH_TXCMD_PRIORITY,
|
||||
@@ -1724,7 +1724,7 @@ int bt_hci_cmd_send_sync(uint16_t opcode, FAR struct bt_buf_s *buf,
|
||||
/* Set up for the wait */
|
||||
|
||||
nxsem_init(&sync_sem, 0, 0);
|
||||
nxsem_setprotocol(&sync_sem, SEM_PRIO_NONE);
|
||||
nxsem_set_protocol(&sync_sem, SEM_PRIO_NONE);
|
||||
buf->u.hci.sync = &sync_sem;
|
||||
|
||||
/* Send the frame */
|
||||
|
||||
@@ -865,14 +865,14 @@ int mac802154dev_register(MACHANDLE mac, int minor)
|
||||
* before blocking */
|
||||
|
||||
nxsem_init(&dev->readsem, 0, 0);
|
||||
nxsem_setprotocol(&dev->readsem, SEM_PRIO_NONE);
|
||||
nxsem_set_protocol(&dev->readsem, SEM_PRIO_NONE);
|
||||
dev->readpending = false;
|
||||
|
||||
sq_init(&dev->dataind_queue);
|
||||
|
||||
dev->geteventpending = false;
|
||||
nxsem_init(&dev->geteventsem, 0, 0);
|
||||
nxsem_setprotocol(&dev->geteventsem, SEM_PRIO_NONE);
|
||||
nxsem_set_protocol(&dev->geteventsem, SEM_PRIO_NONE);
|
||||
|
||||
sq_init(&dev->primitive_queue);
|
||||
|
||||
|
||||
@@ -1397,7 +1397,7 @@ int mac802154netdev_register(MACHANDLE mac)
|
||||
|
||||
priv->md_eventpending = false;
|
||||
nxsem_init(&priv->md_eventsem, 0, 0);
|
||||
nxsem_setprotocol(&priv->md_eventsem, SEM_PRIO_NONE);
|
||||
nxsem_set_protocol(&priv->md_eventsem, SEM_PRIO_NONE);
|
||||
|
||||
sq_init(&priv->primitive_queue);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user