1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-23 00:00:01 +01:00
VILLASnode/doc/openapi/components/schemas/config/nodes/shmem.yaml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
2 KiB
YAML
Raw Permalink Normal View History

2021-11-18 12:10:36 +01:00
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
# SPDX-License-Identifier: Apache-2.0
2022-01-10 17:52:36 +01:00
---
2021-11-18 12:10:36 +01:00
allOf:
- type: object
properties:
queuelen:
type: integer
default: <DEFAULT_SHMEM_QUEUELEN>
description: Length of the input and output queues in elements.
samplelen:
type: integer
description: Maximum number of data elements in a single `struct Sample`` for the samples handled by this node.
default: <DEFAULT_SHMEM_SAMPLELEN>
mode:
type: string
default: pthread
enum:
- pthread
- polling
description: |
If set to `pthread`, POSIX condition variables (CV) are used to signal writes between processes.
If set to `polling`, no CV's are used, meaning that blocking writes have to be implemented using polling, leading to performance improvements at a cost of unnecessary CPU usage.
exec:
description: |
Optional name and command-line arguments (as passed to `execve`) of a command to be executed during node startup.
This can be used to start the external program directly from VILLASNode. If unset, no command is executed.
type: array
items:
type: string
in:
type: object
properties:
name:
type: string
description: |
Name of the POSIX shared memory object.
Must start with a forward slash (/).
The same name should be passed to the external program somehow in its configuration or command-line arguments.
out:
type: object
properties:
name:
type: string
description: |
Name of the POSIX shared memory object.
Must start with a forward slash (/).
The same name should be passed to the external program somehow in its configuration or command-line arguments.
2021-12-02 04:14:44 -05:00
- $ref: ../node_signals.yaml
2021-12-06 09:25:55 +01:00
- $ref: ../node.yaml