int canqueue_ends_done_kern (struct canque_ends_t * qends, int sync);
int canqueue_ends_done_kern
pointer to ends structure
flag indicating, that user wants to wait for processing of all remaining messages
Function should be designed such way to not fail.