2019-03-22 13:49:07 +01:00
|
|
|
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2023-08-31 11:25:01 +02:00
|
|
|
|
2019-03-22 13:49:07 +01:00
|
|
|
nodes = {
|
2024-02-29 21:36:38 +01:00
|
|
|
shmem_node = {
|
|
|
|
type = "shmem",
|
2019-03-22 13:49:07 +01:00
|
|
|
|
2024-02-29 21:36:38 +01:00
|
|
|
in = {
|
2024-04-09 14:17:35 +02:00
|
|
|
# Name of shared memory segment for receiving side
|
2024-02-29 21:36:38 +01:00
|
|
|
name = "sn1_in"
|
2024-04-09 14:17:35 +02:00
|
|
|
},
|
2024-02-29 21:36:38 +01:00
|
|
|
out = {
|
2024-04-09 14:17:35 +02:00
|
|
|
# Name of shared memory segment for sending side
|
|
|
|
name = "sn1_in"
|
2024-02-29 21:36:38 +01:00
|
|
|
},
|
|
|
|
|
2024-04-09 14:17:35 +02:00
|
|
|
# Length of the queues
|
|
|
|
queuelen = 1024,
|
|
|
|
|
|
|
|
# We can busy-wait or use pthread condition variables for synchronizations
|
|
|
|
mode = "pthread",
|
2024-02-29 21:36:38 +01:00
|
|
|
|
|
|
|
# Execute an external process when starting the node which
|
|
|
|
# then starts the other side of this shared memory channel
|
2024-04-09 14:17:35 +02:00
|
|
|
# Usually we also pass the shmem names as parameters
|
2024-02-29 21:36:38 +01:00
|
|
|
exec = [ "villas-shmem", "sn1_in", "sn1_out" ]
|
|
|
|
}
|
2019-03-22 13:49:07 +01:00
|
|
|
}
|