Lines Matching refs:is

6 A :dfn:`Multi Producer Single Consumer Packet Buffer (MPSC_PBUF)` is a circular
9 is a single context that consumes the data. However, it is possible that another
11 Packet is produced in two steps: first requested amount of data is allocated,
12 producer fills the data and commits it. Consuming a packet is also performed in
14 on packet is freed. This approach reduces memory copying.
20 * Allocator ensures that contiguous memory of requested length is allocated.
24 be allocated. For each dropped packet user callback is called.
33 Each packet in the buffer contains ``MPSC_PBUF`` specific header which is used
40 * busy - bit set when packet is being consumed (claimed but not free)
47 | 0 | 0 | space is free |
62 Using pairs for read and write indexes, available space is determined. If
63 space can be allocated, temporary write index is moved and pointer to a space
64 within buffer is returned. Packet header is reset. If allocation required
65 wrapping of the write index, a skip packet is added to the end of buffer. If
66 space cannot be allocated and overwrite is disabled then ``NULL`` pointer is
72 If overwrite is enabled, oldest packets are dropped until requested amount of
73 space can be allocated. When packets are dropped ``busy`` flag is checked in the
74 header to ensure that currently consumed packet is not overwritten. In that case,
75 skip packet is added before busy packet and packets following the busy packet
76 are dropped. When busy packet is being freed, such situation is detected and
77 packet is converted to skip packet to avoid double processing.
106 * Drop notification - callback called whenever a packet is dropped due to