From patchwork Thu Jun 27 02:09:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 1524 Return-Path: Received: from bin-mail-out-05.binero.net (bin-mail-out-05.binero.net [195.74.38.228]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 5E9BF60BD4 for ; Thu, 27 Jun 2019 04:10:10 +0200 (CEST) X-Halon-ID: a0988b52-9880-11e9-8ab4-005056917a89 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (unknown [145.14.112.32]) by bin-vsp-out-01.atm.binero.net (Halon) with ESMTPA id a0988b52-9880-11e9-8ab4-005056917a89; Thu, 27 Jun 2019 04:09:50 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Thu, 27 Jun 2019 04:09:53 +0200 Message-Id: <20190627020955.6166-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/2] libcamera: ipc: unix: Add a IPC mechanism based on Unix sockets X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jun 2019 02:10:10 -0000 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