The component which managing the buffer of packet.
More...
The component which managing the buffer of packet.
- Author
- Thomas Watteyne watte.nosp@m.yne@.nosp@m.eecs..nosp@m.berk.nosp@m.eley..nosp@m.edu, August 2010
bool debugPrint_queue |
( |
void |
| ) |
|
Trigger this module to print status information, over serial.
debugPrint_* functions are used by the openserial module to continuously print status information about several modules in the OpenWSN stack.
- Returns
- TRUE if this function printed something, FALSE otherwise.
Free a previously-allocated packet buffer.
- Parameters
-
pkt | A pointer to the previsouly-allocated packet buffer. |
- Returns
- E_SUCCESS when the freeing was succeful.
-
E_FAIL when the module could not find the specified packet buffer.
Request a new (free) packet buffer.
Component throughout the protocol stack can call this function is they want to get a new packet buffer to start creating a new packet.
- Note
- Once a packet has been allocated, it is up to the creator of the packet to free it using the openqueue_freePacketBuffer() function.
- Returns
- A pointer to the queue entry when it could be allocated, or NULL when it could not be allocated (buffer full or not synchronized).
void openqueue_init |
( |
void |
| ) |
|
void openqueue_removeAllCreatedBy |
( |
uint8_t |
creator | ) |
|
Free all the packet buffers created by a specific module.
- Parameters
-
creator | The identifier of the component, taken in COMPONENT_*. |
void openqueue_removeAllOwnedBy |
( |
uint8_t |
owner | ) |
|
Free all the packet buffers owned by a specific module.
- Parameters
-
owner | The identifier of the component, taken in COMPONENT_*. |