mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
net/: Fix some incorrect comments that go back for years (but have also been cloned in newer files). The network was once interrupt driver, but now runs on the work queue with a semaphore to enforce mutual exclusion.
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
* OK if packet has been processed, otherwise ERROR.
|
||||
*
|
||||
* Assumptions:
|
||||
* This function is called at the interrupt level with interrupts disabled.
|
||||
* This function is called at the with the network disabled.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
@@ -128,9 +128,7 @@ FAR struct bluetooth_conn_s *bluetooth_conn_alloc(void)
|
||||
{
|
||||
FAR struct bluetooth_conn_s *conn;
|
||||
|
||||
/* The free list is only accessed from user, non-interrupt level and
|
||||
* is protected by a semaphore (that behaves like a mutex).
|
||||
*/
|
||||
/* The free list is protected by the network lock */
|
||||
|
||||
net_lock();
|
||||
conn = (FAR struct bluetooth_conn_s *)
|
||||
@@ -162,9 +160,7 @@ void bluetooth_conn_free(FAR struct bluetooth_conn_s *conn)
|
||||
FAR struct bluetooth_container_s *container;
|
||||
FAR struct bluetooth_container_s *next;
|
||||
|
||||
/* The free list is only accessed from user, non-interrupt level and
|
||||
* is protected by a semaphore (that behaves like a mutex).
|
||||
*/
|
||||
/* The free list is protected by the network lock. */
|
||||
|
||||
DEBUGASSERT(conn->bc_crefs == 0);
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
/* This structure holds the state of the send operation until it can be
|
||||
* operated upon from the interrupt level.
|
||||
* operated upon from the event handler.
|
||||
*/
|
||||
|
||||
struct bluetooth_sendto_s
|
||||
|
||||
Reference in New Issue
Block a user