[libcamera-devel] [PATCH 0/2] libcamera: ipc: unix: Add a IPC mechanism based on Unix sockets
Niklas Söderlund
niklas.soderlund at ragnatech.se
Thu Jun 27 04:09:53 CEST 2019
Hello,
This series adds an IPC mechanism to pass data and file descriptors
between two processes. The interface is asynchronous and bi-directional.
There are quiet a few changes since the RFC,
- Switch to an event notifications and signals for the ingress code
path, making the interface asynchronous.
- Removed any protocol helpers in the IPC object, a protocol should be
implemented on top of the IPC.
- Added documentation.
- Switched to SOCK_DGRAM.
- Send both data and file descriptors in the same sendmsg().
- Fixed spelling and silly errors in the code.
- Merged test case in a single binary.
Niklas Söderlund (2):
libcamera: ipc: unix: Add a IPC mechanism based on Unix sockets
test: ipc: unix: Add test for IPCUnixSocket
src/libcamera/include/ipc_unixsocket.h | 59 +++++
src/libcamera/ipc_unixsocket.cpp | 288 +++++++++++++++++++++
src/libcamera/meson.build | 2 +
test/ipc/meson.build | 12 +
test/ipc/unixsocket.cpp | 339 +++++++++++++++++++++++++
test/meson.build | 1 +
6 files changed, 701 insertions(+)
create mode 100644 src/libcamera/include/ipc_unixsocket.h
create mode 100644 src/libcamera/ipc_unixsocket.cpp
create mode 100644 test/ipc/meson.build
create mode 100644 test/ipc/unixsocket.cpp
--
2.21.0
More information about the libcamera-devel
mailing list