]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/src/devcommon.c
Added support for fasync system call and replacement of spinXXX by can_spinXXX
[lincan.git] / lincan / src / devcommon.c
index dce205a620507805cf4ca1f3342041f820daeda8..c26a36f0231fab67c8cb420628e888bc98b6a15e 100644 (file)
@@ -58,5 +58,12 @@ int canqueue_ends_init_chip(struct canque_ends_t *qends, struct chip_t *chip, st
 
 int canqueue_ends_done_chip(struct canque_ends_t *qends)
 {
-       return 0;
+       int delayed;
+       
+       /* Finish or kill all outgoing edges listed in inends */
+       delayed=canqueue_ends_kill_inlist(qends, 1);
+       /* Kill all incoming edges listed in outends */
+       delayed|=canqueue_ends_kill_outlist(qends);
+
+       return delayed;
 }