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:
Gregory Nutt
2018-06-23 14:09:06 -06:00
parent a0e169ad7b
commit aabdc00e8c
24 changed files with 98 additions and 138 deletions
+1 -1
View File
@@ -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.
*
****************************************************************************/
+2 -6
View File
@@ -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);
+1 -1
View File
@@ -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