1 | SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause |
---|
2 | brief: | |
---|
3 | Identifies a partition by the object name. |
---|
4 | copyrights: |
---|
5 | - Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) |
---|
6 | - Copyright (C) 1988, 2008 On-Line Applications Research Corporation (OAR) |
---|
7 | definition: |
---|
8 | default: |
---|
9 | attributes: null |
---|
10 | body: null |
---|
11 | params: |
---|
12 | - ${../../type/if/name:/name} ${.:/params[0]/name} |
---|
13 | - ${/c/if/uint32_t:/name} ${.:/params[1]/name} |
---|
14 | - ${../../type/if/id:/name} *${.:/params[2]/name} |
---|
15 | return: ${../../status/if/code:/name} |
---|
16 | variants: [] |
---|
17 | description: | |
---|
18 | This directive obtains a partition identifier associated with the partition |
---|
19 | name specified in ``${.:/params[0]/name}``. |
---|
20 | |
---|
21 | The node to search is specified in ``${.:/params[1]/name}``. It shall be |
---|
22 | |
---|
23 | * a valid node number, |
---|
24 | |
---|
25 | * the constant ${../../object/if/search-all-nodes:/name} to search in all nodes, |
---|
26 | |
---|
27 | * the constant ${../../object/if/search-local-node:/name} to search in the local |
---|
28 | node only, or |
---|
29 | |
---|
30 | * the constant ${../../object/if/search-other-nodes:/name} to search in all nodes |
---|
31 | except the local node. |
---|
32 | enabled-by: true |
---|
33 | index-entries: |
---|
34 | - get ID of a partition |
---|
35 | - obtain ID of a partition |
---|
36 | interface-type: function |
---|
37 | links: |
---|
38 | - role: interface-placement |
---|
39 | uid: header |
---|
40 | - role: interface-ingroup |
---|
41 | uid: group |
---|
42 | name: rtems_partition_ident |
---|
43 | notes: | |
---|
44 | If the partition name is not unique, then the partition identifier will match |
---|
45 | the first partition with that name in the search order. However, this |
---|
46 | partition identifier is not guaranteed to correspond to the desired |
---|
47 | partition. The partition identifier is used with other partition related |
---|
48 | directives to access the partition. |
---|
49 | |
---|
50 | If node is ${../../object/if/search-all-nodes:/name}, all nodes are searched with |
---|
51 | the local node being searched first. All other nodes are searched with the |
---|
52 | lowest numbered node searched first. |
---|
53 | |
---|
54 | If node is a valid node number which does not represent the local node, then |
---|
55 | only the partitions exported by the designated node are searched. |
---|
56 | |
---|
57 | This directive does not generate activity on remote nodes. It accesses only |
---|
58 | the local copy of the global object table. |
---|
59 | params: |
---|
60 | - description: is the object name to look up. |
---|
61 | dir: null |
---|
62 | name: name |
---|
63 | - description: is the node or node set to search for a matching object. |
---|
64 | dir: null |
---|
65 | name: node |
---|
66 | - description: | |
---|
67 | is the pointer to an object identifier variable. The object identifier of |
---|
68 | an object with the specified name will be stored in this variable, in case |
---|
69 | of a successful operation. |
---|
70 | dir: out |
---|
71 | name: id |
---|
72 | return: |
---|
73 | return: null |
---|
74 | return-values: |
---|
75 | - description: | |
---|
76 | The requested operation was successful. |
---|
77 | value: ${../../status/if/successful:/name} |
---|
78 | - description: | |
---|
79 | The ${.:/params[2]/name} parameter was ${/c/if/null:/name}. |
---|
80 | value: ${../../status/if/invalid-address:/name} |
---|
81 | - description: | |
---|
82 | The ${.:/params[0]/name} parameter was 0. |
---|
83 | value: ${../../status/if/invalid-name:/name} |
---|
84 | - description: | |
---|
85 | There was no object with the specified name on the specified nodes. |
---|
86 | value: ${../../status/if/invalid-name:/name} |
---|
87 | - description: | |
---|
88 | In multiprocessing configurations, the specified node was invalid. |
---|
89 | value: ${../../status/if/invalid-node:/name} |
---|
90 | type: interface |
---|