get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2234753,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2234753/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260508031710.514574-18-alistair.francis@wdc.com/",
    "project": {
        "id": 28,
        "url": "http://patchwork.ozlabs.org/api/1.2/projects/28/?format=api",
        "name": "Linux PCI development",
        "link_name": "linux-pci",
        "list_id": "linux-pci.vger.kernel.org",
        "list_email": "linux-pci@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260508031710.514574-18-alistair.francis@wdc.com>",
    "list_archive_url": null,
    "date": "2026-05-08T03:17:09",
    "name": "[17/18] rust: allow extracting the buffer from a CString",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "d62b520c7c896e4ddd79176e55fd49c7ab2beec0",
    "submitter": {
        "id": 64571,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/64571/?format=api",
        "name": "Alistair Francis",
        "email": "alistair23@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260508031710.514574-18-alistair.francis@wdc.com/mbox/",
    "series": [
        {
            "id": 503312,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/503312/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=503312",
            "date": "2026-05-08T03:16:52",
            "name": "lib: Rust implementation of SPDM",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/503312/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2234753/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2234753/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-pci+bounces-54172-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-pci@vger.kernel.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=SYPzEgPP;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.105.105.114; helo=tor.lore.kernel.org;\n envelope-from=linux-pci+bounces-54172-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=\"SYPzEgPP\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.214.177",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=gmail.com"
        ],
        "Received": [
            "from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])\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 4gBZJJ35Gqz1yCg\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 08 May 2026 13:25:36 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id B369E30804F4\n\tfor <incoming@patchwork.ozlabs.org>; Fri,  8 May 2026 03:20:19 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 188DA2FE566;\n\tFri,  8 May 2026 03:19:34 +0000 (UTC)",
            "from mail-pl1-f177.google.com (mail-pl1-f177.google.com\n [209.85.214.177])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 098D030C35C\n\tfor <linux-pci@vger.kernel.org>; Fri,  8 May 2026 03:19:31 +0000 (UTC)",
            "by mail-pl1-f177.google.com with SMTP id\n d9443c01a7336-2ba4a1a0325so10539145ad.0\n        for <linux-pci@vger.kernel.org>; Thu, 07 May 2026 20:19:31 -0700 (PDT)",
            "from toolbx.alistair23.me ([2403:581e:fdf9:0:6209:4521:6813:45b7])\n        by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2baf1eafa62sm3220685ad.74.2026.05.07.20.19.24\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Thu, 07 May 2026 20:19:30 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1778210374; cv=none;\n b=CearW38XH9BcZ7Q/4gze+7lyLy9Woc8l0W/+pf/xphqFi9ZtoiST/DfDRnQ7ItHeU5YmWpTpCyTTc+JATvjWGHWC2eWNNq9bos/dAtiU+/In4zlunr9EPtTrgZTM5Roa1yM8FN0a0hn170TwmRJ6D6iB8COKHnTcqfwb4tHiIgQ=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1778210374; c=relaxed/simple;\n\tbh=j3lxGogAEu2m4ODiCYf4W/cmhvK2xVIezXSiFbrV+fY=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=TzeT9WUhzxL+lse+6YB3WzqMmqMQTEcGaGQjSvsHtkYwaCjKAdICX8+TEJaFyEtY1GTde5zO6/2oic4CsqLl9oRbxnKrS+5vBVuSn7wseoVCBYskxN7b9ResjkYiKftaHKo+VJ+pX8OsYY+eIbLc5Aw3mEeF7CqXsVRD502Dg7A=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com;\n spf=pass smtp.mailfrom=gmail.com;\n dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=SYPzEgPP; arc=none smtp.client-ip=209.85.214.177",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1778210371; x=1778815171;\n darn=vger.kernel.org;\n        h=content-transfer-encoding:mime-version:references:in-reply-to\n         :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n         :message-id:reply-to;\n        bh=KV+KKNzPOZuwOP9jOwich0HOmZDeWpgxJKGJYxOCc1E=;\n        b=SYPzEgPPEAISbTP4ZX6A+emoUo22JWeiwLrPlZlR9DklqTVIl8Z557D3b2AJ3AEb/W\n         RX8DqmMrTG3QX6anU7D5OmBzEnwOLlwAFDhPFCXLylLZXegujZmengVO4xPbqLqpF5Cb\n         S3QpS6vZEkzsY3oKH9Tj3gFmItjnpHVR7iCNog1CHZovwXVHlNfrTIk1m3eAwTdKFLUz\n         Dsm8mx7xaFU2zv326821qnQsrMJOpv6D7YokAZs8Lq+tDsyNwkDrC9GaQUvyDN/vPXfi\n         f+6eNnwDKYc0LpEvFaUGOAiqTyk6qSKDSi6YfV191oQnTqmuYsBLwYSRelm6SRZbxE+5\n         VjGQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1778210371; x=1778815171;\n        h=content-transfer-encoding:mime-version:references:in-reply-to\n         :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n         :to:cc:subject:date:message-id:reply-to;\n        bh=KV+KKNzPOZuwOP9jOwich0HOmZDeWpgxJKGJYxOCc1E=;\n        b=ZlwgR6uA1xzoILKIj2Gt12Z/GI/LJtv0Klcf2OXGa814IrEwKdiIYZMRltUJpdJIAn\n         IRJSQ0nnlGxXp+xgfcYBiO4AzdCyfd+GIxBAgGdVwV6Z08xC0TNPZdwR+8dSfcKaycxy\n         IOLQpkEmq4DIRUm3uz9uoRE+Y8Hg5DQhISFzgM8ed1oVqY88W4QL3IS6Llt8NXvQicyW\n         mKsZivyxNkGoRw9Drko0Alebz4aAkWZW3f3zm4gYNLyLVHrfDRa5QIfQWOQ0UpVoGeQI\n         OFtfZXyl3nO3VI43UxHZBmfDSeuXKvszQ8siKq3vk14s49S3M5gPvL/N10GOEc7eVOoG\n         8HbA==",
        "X-Forwarded-Encrypted": "i=1;\n AFNElJ/KewuyBFH5be4hehxad8hLOcZMCz1fbWQac540WoNIj2z4v53daT5Qgcxykm6/ucq8j2E8i+tMOpI=@vger.kernel.org",
        "X-Gm-Message-State": "AOJu0Yxfesm8UGipuU43giENPnI3GhMhwcVnCvhbFGYwQcJklRY89qs6\n\tHWdIj6wWxPQoVc1QgpCyROBZ4euKBj8PUJDkqWTYBJuiPQasDIb8zI+Y",
        "X-Gm-Gg": "Acq92OGdmPclPCRXcoyBDKbkhnDAFOQ8DvF9BPfltMv3R6GzKmrtgO/EDQyp4coVmJO\n\t/0tKJlJYx6HjXLisDCxTzwvypDBq4zQGnqDqNZABEqzl56VuWAwWrOBmWCzwjWYfufO/akHl9it\n\tJTV0/kbXA4td6X18tuBDYWmi1TNmdkxH7egZP7Y2M6svdrpQtRYizuDBba+DPC1HMu3LHufHe2s\n\t7AAf6u3TDKqg1DPuSCki+pKUjkoomLdte3YIeySMhgi7Uaqe7NTAY4Or8NMzxuZrINrpfPVXmoV\n\tzzVc+LXsFLY1IZbrwIMugzFxHwLLzuzpoG5dE9ewKrlWnV/PMQ77ECguQ02brUkSIRKuv8hmNTj\n\tfeNj7Uw9QCCXaP18HUa+WDLfRsMh/7PzMIPQ5TPBpAsGOWR4rlSQWvVnj2Vg9+ddwc7F5RX9+Wp\n\ttZbEJvhp1oUbJR5wvl7FOFI5r09wnqwyaVaLaXpUHkM0Cmy6A61XI=",
        "X-Received": "by 2002:a17:903:3887:b0:2ba:83f8:7b7b with SMTP id\n d9443c01a7336-2ba83f87cfcmr97081925ad.33.1778210371221;\n        Thu, 07 May 2026 20:19:31 -0700 (PDT)",
        "From": "alistair23@gmail.com",
        "X-Google-Original-From": "alistair.francis@wdc.com",
        "To": "alistair@alistair23.me,\n\tlinux-kernel@vger.kernel.org,\n\tlukas@wunner.de,\n\tJonathan.Cameron@huawei.com,\n\tbhelgaas@google.com,\n\trust-for-linux@vger.kernel.org,\n\takpm@linux-foundation.org,\n\tlinux-cxl@vger.kernel.org,\n\tdjbw@kernel.org,\n\tlinux-pci@vger.kernel.org",
        "Cc": "alex.gaynor@gmail.com,\n\twilfred.mallawa@wdc.com,\n\tgary@garyguo.net,\n\tbjorn3_gh@protonmail.com,\n\tbenno.lossin@proton.me,\n\taliceryhl@google.com,\n\tboqun.feng@gmail.com,\n\ta.hindborg@kernel.org,\n\ttmgross@umich.edu,\n\tojeda@kernel.org,\n\talistair23@gmail.com",
        "Subject": "[PATCH 17/18] rust: allow extracting the buffer from a CString",
        "Date": "Fri,  8 May 2026 13:17:09 +1000",
        "Message-ID": "<20260508031710.514574-18-alistair.francis@wdc.com>",
        "X-Mailer": "git-send-email 2.52.0",
        "In-Reply-To": "<20260508031710.514574-1-alistair.francis@wdc.com>",
        "References": "<20260508031710.514574-1-alistair.francis@wdc.com>",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-pci@vger.kernel.org",
        "List-Id": "<linux-pci.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-pci+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-pci+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit"
    },
    "content": "From: Alistair Francis <alistair@alistair23.me>\n\nThe kernel CString is a wrapper aroud a KVec. This patch allows\nretrieving the underlying buffer and consuming the CString. This allows\nusers to create a CString from a string and then retrieve the underlying\nbuffer.\n\nSigned-off-by: Alistair Francis <alistair@alistair23.me>\nReviewed-by: Gary Guo <gary@garyguo.net>\n---\n rust/kernel/str.rs | 6 ++++++\n 1 file changed, 6 insertions(+)",
    "diff": "diff --git a/rust/kernel/str.rs b/rust/kernel/str.rs\nindex 17070dde0e35..764dd5c695f6 100644\n--- a/rust/kernel/str.rs\n+++ b/rust/kernel/str.rs\n@@ -856,6 +856,12 @@ pub fn try_from_fmt(args: fmt::Arguments<'_>) -> Result<Self, Error> {\n         // exist in the buffer.\n         Ok(Self { buf })\n     }\n+\n+    /// Return the internal buffer while consuming the original [`CString`]\n+    #[inline]\n+    pub fn into_vec(self) -> KVec<u8> {\n+        self.buf\n+    }\n }\n \n impl Deref for CString {\n",
    "prefixes": [
        "17/18"
    ]
}