interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / native / argus / bridge / argus_aegis_bridge.h

50 lines · 2256 bytes Raw Blame History
1/* SPDX-License-Identifier: Apache-2.0
2 * Copyright 2026 Drake Stapleton (AIEN / aien-dev)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef ARGUS_AEGIS_BRIDGE_H
18#define ARGUS_AEGIS_BRIDGE_H
19
20#include "../argus_contain.h"
21#include "../argus_core.h"
22#include "../../capability/aienos_contain.h"
23
24typedef struct ArgusAegisBridge ArgusAegisBridge;
25
26size_t argus_aegis_bridge_footprint(void);
27int argus_aegis_bridge_init(ArgusAegisBridge **out, void *memory, size_t bytes,
28 ArgusCore *core, ArgusContain *contain,
29 AienosContain **gate_ref, const AienosCapView *view,
30 const uint8_t machine_id[ARGUS_MACHINE_ID_LEN]);
31void argus_aegis_bridge_destroy(ArgusAegisBridge *bridge);
32
33/* Register these directly with the capability observer and containment gate. */
34void argus_aegis_bridge_observer(void *ctx, uint32_t op, const AienosCapEntry *entry,
35 int result);
36int argus_aegis_bridge_attach_gate(ArgusAegisBridge *bridge);
37
38/* Core-ingest entry used by the consumer for ordinary events and kind 90. */
39int argus_aegis_bridge_ingest(ArgusAegisBridge *bridge, const ArgusEvent *event);
40/* Submit one proposal. A GRANT is executed synchronously on this caller thread. */
41int argus_aegis_bridge_submit(ArgusAegisBridge *bridge,
42 const ArgusContainmentRequest *request,
43 AienosContainDecision *decision,
44 AienosContainResult *result);
45
46size_t argus_aegis_bridge_take_findings(ArgusAegisBridge *bridge,
47 ArgusFinding *out, size_t capacity);
48int argus_aegis_bridge_error(const ArgusAegisBridge *bridge);
49
50#endif