Messages in this thread |  | | | Date | Thu, 16 Sep 2004 10:00:50 -0700 | | From | Andrew Morton <> | | Subject | Re: [RFC, 2.6] a simple FIFO implementation |
| |
Stelian Pop <stelian@popies.net> wrote: > > Here is the updated patch.
Looks good to me.
You're using `head' as "the place from which `get' gets characters" and you're using `tail' as "the place where `put' puts characters". So the FIFO is, logically:
tail head * -> ******************** -> * put get
I've always done it the other way: you put stuff onto the head and take stuff off the tail. Now I have a horid feeling that I've always been arse-about. hrm. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |