MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rob_ring_enqueue

Function rob_ring_enqueue

dpdk/drivers/event/sw/event_ring.h:69–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69static __rte_always_inline unsigned int
70rob_ring_enqueue(struct rob_ring *r, void *re)
71{
72 const uint32_t size = r->size;
73 const uint32_t mask = r->mask;
74 const uint32_t read = r->read_idx;
75 uint32_t write = r->write_idx;
76 const uint32_t space = read + size - write;
77 if (space < 1)
78 return 0;
79 r->ring[write & mask] = re;
80 r->write_idx++;
81 return 1;
82}
83
84static __rte_always_inline unsigned int
85rob_ring_dequeue(struct rob_ring *r, void **re)

Callers 2

qid_initFunction · 0.85
sw_schedule_reorderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected