[lkml]   [2004]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [RFC, 2.6] a simple FIFO implementation
    Stelian Pop <> 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
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:06    [W:0.019 / U:43.828 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site