get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2232178,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2232178/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/ltp/patch/20260503085544.16915-3-always.starving0@gmail.com/",
    "project": {
        "id": 59,
        "url": "http://patchwork.ozlabs.org/api/1.2/projects/59/?format=api",
        "name": "Linux Test Project development",
        "link_name": "ltp",
        "list_id": "ltp.lists.linux.it",
        "list_email": "ltp@lists.linux.it",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260503085544.16915-3-always.starving0@gmail.com>",
    "list_archive_url": null,
    "date": "2026-05-03T08:55:39",
    "name": "[2/2] getppid: Link manpage and fix minor issues",
    "commit_ref": null,
    "pull_url": null,
    "state": "needs-review-ack",
    "archived": false,
    "hash": "e7bbdb3f2c09a826a9b87728d380f9fd0608cf53",
    "submitter": {
        "id": 92589,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/92589/?format=api",
        "name": "Jinseok Kim",
        "email": "always.starving0@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/ltp/patch/20260503085544.16915-3-always.starving0@gmail.com/mbox/",
    "series": [
        {
            "id": 502572,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/502572/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/ltp/list/?series=502572",
            "date": "2026-05-03T08:55:37",
            "name": "syscalls: clean up getpid/getppid tests",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/502572/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2232178/comments/",
    "check": "success",
    "checks": "http://patchwork.ozlabs.org/api/patches/2232178/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "ltp@lists.linux.it"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "ltp@picard.linux.it"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=oofqo3/s;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it\n (client-ip=2001:1418:10:5::2; helo=picard.linux.it;\n envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g7dtq2km2z1yJ0\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 03 May 2026 18:56:51 +1000 (AEST)",
            "from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id 4EA193E24D5\n\tfor <incoming@patchwork.ozlabs.org>; Sun,  3 May 2026 10:56:49 +0200 (CEST)",
            "from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [217.194.8.7])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature ECDSA (secp384r1))\n (No client certificate requested)\n by picard.linux.it (Postfix) with ESMTPS id 996833E2116\n for <ltp@lists.linux.it>; Sun,  3 May 2026 10:56:17 +0200 (CEST)",
            "from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com\n [IPv6:2607:f8b0:4864:20::1043])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by in-7.smtp.seeweb.it (Postfix) with ESMTPS id 2FED42001C6\n for <ltp@lists.linux.it>; Sun,  3 May 2026 10:56:13 +0200 (CEST)",
            "by mail-pj1-x1043.google.com with SMTP id\n 98e67ed59e1d1-364eef1891dso1211789a91.1\n for <ltp@lists.linux.it>; Sun, 03 May 2026 01:56:13 -0700 (PDT)",
            "from localhost.localdomain ([59.16.109.172])\n by smtp.gmail.com with ESMTPSA id\n 98e67ed59e1d1-364ebec899esm8044167a91.1.2026.05.03.01.56.09\n for <ltp@lists.linux.it>\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sun, 03 May 2026 01:56:10 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1777798571; x=1778403371; darn=lists.linux.it;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:from:to:cc:subject:date:message-id\n :reply-to; bh=8eBRMW7Hfyz2NbNDcN0Itr4QnzHPT08gLOAqPkkw1Mw=;\n b=oofqo3/sQqyKIgWR+v3yCf6dFROs9tP8NS+ewiBm1XGwQe6FQJ4t2/RF14bLrV8WE7\n 42kndV3uPQ7lbbLtWd5OKL2w17eFpfBlb/dlG1TkdmqQ4s6euzsmo+GnQJm9XzjvSje4\n w5CiLBxQIQZmEW2Y3asJoZIDNEYJDZc3L/xwO7HUDgNlhvI2GEtBuuh1wahdFqsnJpXc\n C7EHoE0eO05TFw97zrPzYYtLRuoPL+1NJIMjhZgQrbZhVNbIkVRiiegrK7s4ULaYLGfu\n Iqxf8a2h0RF9fF0nNJXNZLsf+9/TblqZxs5ANCRcThJP9ZBO2N8Lj09F0OEz6ZsdQOOM\n +70Q==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777798571; x=1778403371;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=8eBRMW7Hfyz2NbNDcN0Itr4QnzHPT08gLOAqPkkw1Mw=;\n b=QHGN1TbloQOA9wFF7v7bi2foJ1xaO+2j/VG9JvDZARdQDvJSH/NUeVT15JemcUZGhk\n dRVrHQP+Mm7YFQIST2x6eiR9YxnAhEWQN2DgLvzTndJtqBoQh22jfCvrKAW5NdraoGmd\n UD4GXwZavL4cb8TIwuQUxD0XJFC3tqwKhbEuMoH+sqA3w1zEK/Fpfj4cBkWrL3wZKhJT\n neV8QQthDKYj/7rigInAw+LGeJNGls3JBfCZK34gHkAPQHzL4ucncf7G2/h9+LVtxLKj\n d2SQ2M4/FLE++3niAZPbQVFBo1nHrAq5FsTWFxAZU6/uUOcwL8MF3SjrK1C6DZ4axVEG\n S92A==",
        "X-Gm-Message-State": "AOJu0YwpZwJ4zcvezWEJQn332e+aPweRIXGl7nIsg1UBG7GTuPw1qRBp\n cQtArl/wA+AbYXToibwPsyBa2FgZ2CwP0r6wVMl40A2S9ZNWvpyGXloSB2Oe2935BRK4",
        "X-Gm-Gg": "AeBDietMBqg1UQ5Yh0rAK98F21OeJcY7VJ3S9c00EjQj6ixYeJMR3eyvmOB0h7pfDTt\n +XZqwOdMej2MqbcHFUFNJifiv6nOQGHIZ7oLZoskXyEu+dZpvbGHM0L6qzwMGrSOo4+dq9DikQW\n hNXMBwcrg3UpLJwvll0E8TP2cZPAlSPpZVw6xXayJKQGz2sKH51kIQK/emcwrfI2a4dkoCeh4XI\n ZchOJPsgfkiAFlUHD8qOBq/W7CJah76gf5HCLxsNJv9SAnv3si2oSxU8kChidFMl+BLkmBTDf97\n /RRSkZiLFi8Ht9H3kBDzGWoTmAQUr8GmzQvIZUaGtvf9eXWj2l+c570jcx91Tb2NePjst7S+DW0\n yEetm3jXxk+orB7yRV9aGYqeZecXIVv+Z1eQoJJRnc0CTScxUjhKw43wABw6R+u5uplNEr0D4M1\n NGMSrp1rYDVdAwblbu1B3bdosb8nTO+F6wXjSYLMd7zAPJgj4B6qRt6A5Z51pR9HY=",
        "X-Received": "by 2002:a17:90b:4ccb:b0:35f:bbc0:e570 with SMTP id\n 98e67ed59e1d1-3650cb0af61mr5718151a91.0.1777798571212;\n Sun, 03 May 2026 01:56:11 -0700 (PDT)",
        "From": "Jinseok Kim <always.starving0@gmail.com>",
        "To": "ltp@lists.linux.it",
        "Date": "Sun,  3 May 2026 17:55:39 +0900",
        "Message-ID": "<20260503085544.16915-3-always.starving0@gmail.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260503085544.16915-1-always.starving0@gmail.com>",
        "References": "<20260503085544.16915-1-always.starving0@gmail.com>",
        "MIME-Version": "1.0",
        "X-Spam-Status": "No, score=0.3 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,\n SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=disabled version=4.0.1",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on in-7.smtp.seeweb.it",
        "X-Virus-Scanned": "clamav-milter 1.0.9 at in-7.smtp.seeweb.it",
        "X-Virus-Status": "Clean",
        "Subject": "[LTP] [PATCH 2/2] getppid: Link manpage and fix minor issues",
        "X-BeenThere": "ltp@lists.linux.it",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "Linux Test Project <ltp.lists.linux.it>",
        "List-Unsubscribe": "<https://lists.linux.it/options/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=unsubscribe>",
        "List-Archive": "<http://lists.linux.it/pipermail/ltp/>",
        "List-Post": "<mailto:ltp@lists.linux.it>",
        "List-Help": "<mailto:ltp-request@lists.linux.it?subject=help>",
        "List-Subscribe": "<https://lists.linux.it/listinfo/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it",
        "Sender": "\"ltp\" <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>"
    },
    "content": "Link to the manpage in docparse comments.\n\nAlso remove the unused <error.h> header and tighten the ppid bounds check.\n\nSigned-off-by: Jinseok Kim <always.starving0@gmail.com>\n---\n testcases/kernel/syscalls/getppid/getppid01.c | 6 +++---\n testcases/kernel/syscalls/getppid/getppid02.c | 5 ++---\n 2 files changed, 5 insertions(+), 6 deletions(-)\n\n--\n2.43.0",
    "diff": "diff --git a/testcases/kernel/syscalls/getppid/getppid01.c b/testcases/kernel/syscalls/getppid/getppid01.c\nindex 3f05aed37..5b5e6cceb 100644\n--- a/testcases/kernel/syscalls/getppid/getppid01.c\n+++ b/testcases/kernel/syscalls/getppid/getppid01.c\n@@ -5,10 +5,10 @@\n  */\n\n /*\\\n- * Test whether parent process id that getppid() returns is out of range.\n+ * Test whether parent process id that :manpage:`getppid(2)` returns is\n+ * out of range.\n  */\n\n-#include <errno.h>\n #include \"tst_test.h\"\n\n static pid_t pid_max;\n@@ -23,7 +23,7 @@ static void verify_getppid(void)\n \tpid_t ppid;\n\n \tppid = getppid();\n-\tif (ppid > pid_max)\n+\tif (ppid < 1 || ppid > pid_max)\n \t\ttst_res(TFAIL, \"getppid() returned %d, out of range!\", ppid);\n \telse\n \t\ttst_res(TPASS, \"getppid() returned %d\", ppid);\ndiff --git a/testcases/kernel/syscalls/getppid/getppid02.c b/testcases/kernel/syscalls/getppid/getppid02.c\nindex 7497eba12..a2796406f 100644\n--- a/testcases/kernel/syscalls/getppid/getppid02.c\n+++ b/testcases/kernel/syscalls/getppid/getppid02.c\n@@ -4,11 +4,10 @@\n  */\n\n /*\\\n- * Check that getppid() in child returns the same pid as getpid() in parent.\n+ * Check that :manpage:`getppid(2)` in child returns the same pid as\n+ * :manpage:`getpid(2)` in parent.\n  */\n\n-#include <errno.h>\n-\n #include \"tst_test.h\"\n\n static void verify_getppid(void)\n",
    "prefixes": [
        "2/2"
    ]
}