kernels/linux-2.4.0/drivers/isdn/eicon/log.c
/* 
 * retrieve message from FIFO buffer
 * returns NULL if buffer empty
 * otherwise returns pointer to entry 
 */
retrieve message from FIFO buffer
returns NULL if buffer empty
otherwise returns pointer to entry
retrieve message from FIFO buffer returns NULL if buffer empty otherwise returns pointer to entry
char	*DivasLogFifoRead(void)
{
	KNODE *old_head;
	if(head==NULL) 
	{
		return NULL;	
	}
	m_count--;
	old_head = head;
	head = head->next;
    return((char *)old_head);
}
char * DivasLogFifoRead ( void ) { KNODE * old_head ; if ( head == NULL ) { return NULL ; } m_count -- ; old_head = head ; head = head -> next ; return ( ( char * ) old_head ) ; }
retrieve message from FIFO buffer
 returns NULL if buffer empty
 otherwise returns pointer to entry
retrieve message from FIFO buffer returns NULL if buffer empty otherwise returns pointer to entry
/* Buffer Empty - No Messages */ /* Keep track of message to be read & increment to next message*/ /*Return ptr to Msg */