kernels/linux-2.4.0/drivers/block/cciss.c
/*
 * Enqueuing and dequeuing functions for cmdlists.
 */
Enqueuing and dequeuing functions for cmdlists.
Enqueuing and dequeuing functions for cmdlists .
static inline void addQ(CommandList_struct **Qptr, CommandList_struct *c)
{
        if (*Qptr == NULL) {
                *Qptr = c;
                c->next = c->prev = c;
        } else {
                c->prev = (*Qptr)->prev;
                c->next = (*Qptr);
                (*Qptr)->prev->next = c;
                (*Qptr)->prev = c;
        }
}
static inline void addQ ( CommandList_struct * * Qptr , CommandList_struct * c ) { if ( * Qptr == NULL ) { * Qptr = c ; c -> next = c -> prev = c ; } else { c -> prev = ( * Qptr ) -> prev ; c -> next = ( * Qptr ) ; ( * Qptr ) -> prev -> next = c ; ( * Qptr ) -> prev = c ; } }
Enqueuing and dequeuing functions for cmdlists.
Enqueuing and dequeuing functions for cmdlists .