Show a patch.

GET /api/patches/27264/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 27264,
    "url": "https://patchwork.libcamera.org/api/patches/27264/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/27264/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/projects/1/?format=api",
        "name": "libcamera",
        "link_name": "libcamera",
        "list_id": "libcamera_core",
        "list_email": "libcamera-devel@lists.libcamera.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20260708042237.297547-1-paul.elder@ideasonboard.com>",
    "date": "2026-07-08T04:22:37",
    "name": "tests: ipa_data_serializer_test: Test serializing fds",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "f697c9170b365b38caac78327415c2e452e4afad",
    "submitter": {
        "id": 17,
        "url": "https://patchwork.libcamera.org/api/people/17/?format=api",
        "name": "Paul Elder",
        "email": "paul.elder@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/27264/mbox/",
    "series": [
        {
            "id": 6045,
            "url": "https://patchwork.libcamera.org/api/series/6045/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=6045",
            "date": "2026-07-08T04:22:37",
            "name": "tests: ipa_data_serializer_test: Test serializing fds",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/6045/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/27264/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/27264/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<libcamera-devel-bounces@lists.libcamera.org>",
        "X-Original-To": "parsemail@patchwork.libcamera.org",
        "Delivered-To": "parsemail@patchwork.libcamera.org",
        "Received": [
            "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 7BB2AC3304\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed,  8 Jul 2026 04:22:49 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id AA6DA66071;\n\tWed,  8 Jul 2026 06:22:48 +0200 (CEST)",
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 852406601C\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed,  8 Jul 2026 06:22:47 +0200 (CEST)",
            "from neptunite.hamster-moth.ts.net (unknown\n\t[IPv6:2404:7a81:160:2100:7c23:cb25:99bc:17dc])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id E52DD1049;\n\tWed,  8 Jul 2026 06:21:56 +0200 (CEST)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"cl7mJctc\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1783484517;\n\tbh=W4yhNm1CKK8zuWdYNhoMUMv0WeEsWfiW6K2EXRGrFgU=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=cl7mJctckBcE1vZ6BKxV5RQmga8aPZR69Or3i3WbKkWnVpM5lC8rf/oaNMUzEzq/C\n\tbwvx/tkUU4j0U/cMZfFUYelktyKBfSHRHw1WxWt9sGRRgkH6+7Vk5S3BtIVx4U6Saq\n\tnQ7SXjTsrxDRKEtPN65AZm2HZWERDObzVl0Uiyrw=",
        "From": "Paul Elder <paul.elder@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Cc": "Paul Elder <paul.elder@ideasonboard.com>",
        "Subject": "[PATCH] tests: ipa_data_serializer_test: Test serializing fds",
        "Date": "Wed,  8 Jul 2026 13:22:37 +0900",
        "Message-ID": "<20260708042237.297547-1-paul.elder@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.47.2",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "libcamera-devel@lists.libcamera.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "<libcamera-devel.lists.libcamera.org>",
        "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>",
        "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>",
        "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>",
        "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "Add tests to test IPADataSerializer serializing SharedFDs.\n\nSigned-off-by: Paul Elder <paul.elder@ideasonboard.com>\n---\n .../ipa_data_serializer_test.cpp              | 43 +++++++++++++++++++\n 1 file changed, 43 insertions(+)",
    "diff": "diff --git a/test/serialization/ipa_data_serializer_test.cpp b/test/serialization/ipa_data_serializer_test.cpp\nindex afea93a6c24d..9b16383c4d5f 100644\n--- a/test/serialization/ipa_data_serializer_test.cpp\n+++ b/test/serialization/ipa_data_serializer_test.cpp\n@@ -11,6 +11,7 @@\n #include <iostream>\n #include <limits>\n #include <stdlib.h>\n+#include <sys/mman.h>\n #include <sys/stat.h>\n #include <sys/types.h>\n #include <tuple>\n@@ -140,6 +141,10 @@ protected:\n \t\tif (ret != TestPass)\n \t\t\treturn ret;\n \n+\t\tret = testFd();\n+\t\tif (ret != TestPass)\n+\t\t\treturn ret;\n+\n \t\treturn TestPass;\n \t}\n \n@@ -431,6 +436,44 @@ private:\n \n \t\treturn TestPass;\n \t}\n+\n+\tint testFd()\n+\t{\n+\t\t/* Test serdes of single fd */\n+\t\tint memfd = memfd_create(\"test\", 0);\n+\t\tif (memfd < 0) {\n+\t\t\tcerr << \"Failed to create memfd\" << endl;\n+\t\t\treturn TestFail;\n+\t\t}\n+\n+\t\tSharedFD fd = SharedFD(std::move(memfd));\n+\t\tif (memfd != -1) {\n+\t\t\tcerr << \"SharedFD move constructor failed\" << endl;\n+\t\t\treturn TestFail;\n+\t\t}\n+\n+\t\tif (testPodSerdes(fd) != TestPass)\n+\t\t\treturn TestFail;\n+\n+\t\t/* Test serdes of vector of fds */\n+\t\tstd::vector<SharedFD> vecFds;\n+\n+\t\tfor (unsigned int i = 0; i < 10; i++) {\n+\t\t\tstd::string name = \"test\" + std::to_string(i);\n+\t\t\tint mfd = memfd_create(name.c_str(), 0);\n+\t\t\tif (mfd < 0)\n+\t\t\t\treturn TestFail;\n+\n+\t\t\tvecFds.push_back(SharedFD(std::move(mfd)));\n+\t\t\tif (mfd != -1)\n+\t\t\t\treturn TestFail;\n+\t\t}\n+\n+\t\tif (testVectorSerdes(vecFds) != TestPass)\n+\t\t\treturn TestFail;\n+\n+\t\treturn TestPass;\n+\t}\n };\n \n TEST_REGISTER(IPADataSerializerTest)\n",
    "prefixes": []
}