/* Get the RtkBuffer which is the head of a RtkQueue  */
RTK_BUFFER* RtbTopQueue(IN RTB_QUEUE_HEAD *RtkQueueHead)
/* Get the RtkBuffer which is the head of a RtkQueue  */
RTK_BUFFER* RtbTopQueue(IN RTB_QUEUE_HEAD *RtkQueueHead)
{
    RTK_BUFFER* Rtb = NULL;
    aos_mutex_lock(&RtkQueueHead->Lock, AOS_WAIT_FOREVER);
    if (RtbQueueIsEmpty(RtkQueueHead))
    {
        aos_mutex_unlock(&RtkQueueHead->Lock);
        return NULL;
    }
    Rtb = (RTK_BUFFER*)RtkQueueHead->List.Next;
    aos_mutex_unlock(&RtkQueueHead->Lock);
    return Rtb;
}