Commit b46d2cf1 authored by Simon Morlat's avatar Simon Morlat

add doc

parent 0c53b29f
...@@ -47,6 +47,10 @@ static MS2_INLINE void ms_queue_put(MSQueue *q, mblk_t *m){ ...@@ -47,6 +47,10 @@ static MS2_INLINE void ms_queue_put(MSQueue *q, mblk_t *m){
return; return;
} }
/**
* Insert mblk_t 'm' in queue 'q' just before mblk_t 'em'.
* If em is NULL, m is inserted at the end and becomes the last element.
*/
static MS2_INLINE void ms_queue_insert(MSQueue *q, mblk_t *em, mblk_t *m) { static MS2_INLINE void ms_queue_insert(MSQueue *q, mblk_t *em, mblk_t *m) {
insq(&q->q, em, m); insq(&q->q, em, m);
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment