RTEMS 6.1-rc6
Loading...
Searching...
No Matches
region.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
11/*
12 * Copyright (C) 2020, 2021 embedded brains GmbH & Co. KG
13 * Copyright (C) 1988, 2008 On-Line Applications Research Corporation (OAR)
14 *
15 * Redistribution and use in source and binary forms, with or without
16 * modification, are permitted provided that the following conditions
17 * are met:
18 * 1. Redistributions of source code must retain the above copyright
19 * notice, this list of conditions and the following disclaimer.
20 * 2. Redistributions in binary form must reproduce the above copyright
21 * notice, this list of conditions and the following disclaimer in the
22 * documentation and/or other materials provided with the distribution.
23 *
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
28 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34 * POSSIBILITY OF SUCH DAMAGE.
35 */
36
37/*
38 * This file is part of the RTEMS quality process and was automatically
39 * generated. If you find something that needs to be fixed or
40 * worded better please post a report or patch to an RTEMS mailing list
41 * or raise a bug report:
42 *
43 * https://www.rtems.org/bugs.html
44 *
45 * For information on updating and regenerating please refer to the How-To
46 * section in the Software Requirements Engineering chapter of the
47 * RTEMS Software Engineering manual. The manual is provided as a part of
48 * a release. For development sources please refer to the online
49 * documentation at:
50 *
51 * https://docs.rtems.org
52 */
53
54/* Generated from spec:/rtems/region/if/header */
55
56#ifndef _RTEMS_RTEMS_REGION_H
57#define _RTEMS_RTEMS_REGION_H
58
59#include <stdint.h>
60#include <rtems/rtems/attr.h>
61#include <rtems/rtems/options.h>
62#include <rtems/rtems/status.h>
63#include <rtems/rtems/types.h>
65
66#ifdef __cplusplus
67extern "C" {
68#endif
69
70/* Generated from spec:/rtems/region/if/group */
71
81/* Generated from spec:/rtems/region/if/get-segment-size */
82
128 rtems_id id,
129 void *segment,
130 uintptr_t *size
131);
132
133/* Generated from spec:/rtems/region/if/create */
134
231 rtems_name name,
232 void *starting_address,
233 uintptr_t length,
234 uintptr_t page_size,
235 rtems_attribute attribute_set,
236 rtems_id *id
237);
238
239/* Generated from spec:/rtems/region/if/ident */
240
287
288/* Generated from spec:/rtems/region/if/delete */
289
334
335/* Generated from spec:/rtems/region/if/extend */
336
385 rtems_id id,
386 void *starting_address,
387 uintptr_t length
388);
389
390/* Generated from spec:/rtems/region/if/get-segment */
391
490 rtems_id id,
491 uintptr_t size,
492 rtems_option option_set,
493 rtems_interval timeout,
494 void **segment
495);
496
497/* Generated from spec:/rtems/region/if/return-segment */
498
550
551/* Generated from spec:/rtems/region/if/resize-segment */
552
604 rtems_id id,
605 void *segment,
606 uintptr_t size,
607 uintptr_t *old_size
608);
609
610/* Generated from spec:/rtems/region/if/get-information */
611
661 rtems_id id,
662 Heap_Information_block *the_info
663);
664
665/* Generated from spec:/rtems/region/if/get-free-information */
666
718 rtems_id id,
719 Heap_Information_block *the_info
720);
721
722#ifdef __cplusplus
723}
724#endif
725
726#endif /* _RTEMS_RTEMS_REGION_H */
This header file provides Classic API directive attributes.
This header file provides types used by the Classic API.
uint32_t rtems_attribute
This type represents Classic API attributes.
Definition: attr.h:96
uint32_t rtems_option
This type represents a Classic API directive option set.
Definition: options.h:126
rtems_status_code rtems_region_create(rtems_name name, void *starting_address, uintptr_t length, uintptr_t page_size, rtems_attribute attribute_set, rtems_id *id)
Creates a region.
Definition: regioncreate.c:49
rtems_status_code rtems_region_return_segment(rtems_id id, void *segment)
Returns the segment to the region.
Definition: regionreturnsegment.c:44
rtems_status_code rtems_region_get_information(rtems_id id, Heap_Information_block *the_info)
Gets the region information.
Definition: regiongetinfo.c:44
rtems_status_code rtems_region_get_free_information(rtems_id id, Heap_Information_block *the_info)
Gets the region free information.
Definition: regiongetfreeinfo.c:46
rtems_status_code rtems_region_delete(rtems_id id)
Deletes the region.
Definition: regiondelete.c:44
rtems_status_code rtems_region_ident(rtems_name name, rtems_id *id)
Identifies a region by the object name.
Definition: regionident.c:45
rtems_status_code rtems_region_get_segment_size(rtems_id id, void *segment, uintptr_t *size)
Gets the size of the region segment.
Definition: regiongetsegmentsize.c:44
rtems_status_code rtems_region_get_segment(rtems_id id, uintptr_t size, rtems_option option_set, rtems_interval timeout, void **segment)
Gets a segment from the region.
Definition: regiongetsegment.c:68
rtems_status_code rtems_region_resize_segment(rtems_id id, void *segment, uintptr_t size, uintptr_t *old_size)
Changes the size of the segment.
Definition: regionresizesegment.c:44
rtems_status_code rtems_region_extend(rtems_id id, void *starting_address, uintptr_t length)
Extends the region.
Definition: regionextend.c:44
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:85
uint32_t rtems_name
This type represents Classic API object names.
Definition: types.h:226
Objects_Id rtems_id
This type represents RTEMS object identifiers.
Definition: types.h:94
Watchdog_Interval rtems_interval
This type represents clock tick intervals.
Definition: types.h:114
This header file provides interfaces of the Barrier Handler which are used by the implementation and ...
This header file provides the Classic API directive options.
This header file provides the status codes of Classic API directives and support functions.
Information block returned by _Heap_Get_information().
Definition: heapinfo.h:165