source: rtems/cpukit/score/src/pheapgetblocksize.c @ 8a8b95aa

5
Last change on this file since 8a8b95aa was 4c20da4b, checked in by Sebastian Huber <sebastian.huber@…>, on 04/04/19 at 07:18:11

doxygen: Rename Score* groups in RTEMSScore*

Update #3706

  • Property mode set to 100644
File size: 751 bytes
Line 
1/**
2 * @file
3 *
4 * @ingroup RTEMSScoreProtHeap
5 *
6 * @brief Protected Heap Handler implementation.
7 */
8
9/*
10 *  COPYRIGHT (c) 1989-2007.
11 *  On-Line Applications Research Corporation (OAR).
12 *
13 *  The license and distribution terms for this file may be
14 *  found in the file LICENSE in this distribution or at
15 *  http://www.rtems.org/license/LICENSE.
16 */
17
18#if HAVE_CONFIG_H
19#include "config.h"
20#endif
21
22#include <rtems/score/protectedheap.h>
23
24bool _Protected_heap_Get_block_size(
25  Heap_Control        *the_heap,
26  void                *starting_address,
27  uintptr_t           *size
28)
29{
30  bool status;
31
32  _RTEMS_Lock_allocator();
33    status = _Heap_Size_of_alloc_area( the_heap, starting_address, size );
34  _RTEMS_Unlock_allocator();
35  return status;
36}
Note: See TracBrowser for help on using the repository browser.