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

Function __cirbuf_add_tail

dpdk/lib/cmdline/cmdline_cirbuf.c:121–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119/* add at tail */
120
121static inline void
122__cirbuf_add_tail(struct cirbuf * cbuf, char c)
123{
124 if (!CIRBUF_IS_EMPTY(cbuf)) {
125 cbuf->end ++;
126 cbuf->end %= cbuf->maxlen;
127 }
128 cbuf->buf[cbuf->end] = c;
129 cbuf->len ++;
130}
131
132int
133cirbuf_add_tail_safe(struct cirbuf * cbuf, char c)

Callers 2

cirbuf_add_tail_safeFunction · 0.85
cirbuf_add_tailFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected