[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Question in Heap code (/score/inline/heap.inl)
- Date: Thu, 23 Mar 2000 16:16:39 +0900
- From: frog at lgic.co.kr (Kim, Jeong-Hwan)
- Subject: Question in Heap code (/score/inline/heap.inl)
I have a question in /score/inline/heap.inl.
The routine for returning the head or the tail of HEAP has a following code.
Is the code right ?
Why is the pointer mark attached to the heap argument ?
It means "&(the_heap->start)" and &(the_heap->tail).
Then, does the return value point the tail or start of the block list right ???
Aren't the start and final variables pointers themselves ?
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Head (
return (Heap_Block *)&the_heap->start;
* This function returns the tail of the specified heap.
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Tail (
return (Heap_Block *)&the_heap->final;