get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2222531,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2222531/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260412-ioctl-v1-7-1d998a460560@bsdimp.com/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/14/?format=api",
        "name": "QEMU Development",
        "link_name": "qemu-devel",
        "list_id": "qemu-devel.nongnu.org",
        "list_email": "qemu-devel@nongnu.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20260412-ioctl-v1-7-1d998a460560@bsdimp.com>",
    "date": "2026-04-12T16:02:30",
    "name": "[07/17] bsd-user: Add FreeBSD ioctl type definitions",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "09f4e0400add0cdb794709801454c7556dd8ea1a",
    "submitter": {
        "id": 1896,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/1896/?format=api",
        "name": "Warner Losh",
        "email": "imp@bsdimp.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260412-ioctl-v1-7-1d998a460560@bsdimp.com/mbox/",
    "series": [
        {
            "id": 499616,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/499616/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=499616",
            "date": "2026-04-12T16:02:24",
            "name": "bsd-user: upstream ioctl",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/499616/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2222531/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2222531/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=bsdimp-com.20251104.gappssmtp.com\n header.i=@bsdimp-com.20251104.gappssmtp.com header.a=rsa-sha256\n header.s=20251104 header.b=y0rQSHRT;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4ftwNz74PNz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 13 Apr 2026 02:05:23 +1000 (AEST)",
            "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wBxID-0006V1-3G; Sun, 12 Apr 2026 12:04:13 -0400",
            "from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <imp@bsdimp.com>) id 1wBxHq-0006Pu-QG\n for qemu-devel@nongnu.org; Sun, 12 Apr 2026 12:03:52 -0400",
            "from mail-oi1-x230.google.com ([2607:f8b0:4864:20::230])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <imp@bsdimp.com>) id 1wBxHl-0004VJ-GM\n for qemu-devel@nongnu.org; Sun, 12 Apr 2026 12:03:48 -0400",
            "by mail-oi1-x230.google.com with SMTP id\n 5614622812f47-470145d7df5so2288727b6e.0\n for <qemu-devel@nongnu.org>; Sun, 12 Apr 2026 09:03:42 -0700 (PDT)",
            "from rebo.bsdimp.com ([50.253.99.174])\n by smtp.gmail.com with ESMTPSA id\n 586e51a60fabf-423ddbee0fesm6457006fac.17.2026.04.12.09.03.40\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sun, 12 Apr 2026 09:03:40 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=bsdimp-com.20251104.gappssmtp.com; s=20251104; t=1776009821; x=1776614621;\n darn=nongnu.org;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:from:to:cc:subject:date:message-id\n :reply-to; bh=aXHvbfwqhCila++e6qHrBf6an4295SAF04kURxuYrWg=;\n b=y0rQSHRTI/RPQswCzq5leg/2xxB0I2vGo4idpgGTDwdy1trLU/trxLf8h4VpiKLxlY\n 54/zM0TRheNRANLEc08l384qXFKU/Ze35dICrdjwYXRSNa47n1Vez4vOLRk5MYahqPqO\n oZp3aP9hXDbqG3lvgmlCY+akAIBQVajGnP1cOfXtQHQ0SC+VtuDnXh2A9E4NcMzPhejN\n H3y+ThyyZhpr154226sWAQOyIQnbfXuHYwe6YQTlSXnsHrcS2XpNPp+LH29E7BgB0o9K\n CckKioGYOS5NC4Af4UUbEuGx/mWj16vvEUlGY1thsMClOpBnqRqGwSSwNScWs0iawhtp\n MkuQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776009821; x=1776614621;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=aXHvbfwqhCila++e6qHrBf6an4295SAF04kURxuYrWg=;\n b=Mkfgmbf84qxSBvtHO6viP+9eGIlpqzjb7PXXYWehH/nMpQKLG7DeXePu2dSQONKBUV\n 7EfJvUiyLDcipezMFqZdQoNJgGCtQA2rt8essDkY9EZO+rREa2FvHM97nBURdlJdEzMO\n 4Bj6zux71vDVSY0qJ75Y1cdUZiX5ax7izXuylsFiSlnOBaISWGbgxNHWQYcsba5PNDBb\n 3LotP/zY9OcFPum+6jD+Df5BaHABKXNkck7m/wQHefM4Gtb/NjdBdhenWmfIG+FujTX9\n OKV0kRVNwdNBqcTjleHQQQWU3JKcELxHDXmhVfcgBpJlwqCki1ymuqGQ4bLfzKbtDwMh\n Toog==",
        "X-Gm-Message-State": "AOJu0YyXY+GOAEOQ2QMhBiJeUgUPJ0RIQCz/kF+rCuRpwdlPv8ngDoM7\n z5m7a4PLx3V7IixVJn60bE0cAsY6ds/uMJjZGrB7tAn6zmOjB3u9bfBIFQC/Brmz0R9UqI05j9p\n PHx7xv/U=",
        "X-Gm-Gg": "AeBDietD+u8Cf7j8c5YvOV27ih7419T+D/HP+BnkNMLwoj4zGbN5Qh1G6P0stBcV1tP\n x8SrpN9QybDP2bmvnUk2C8Hom0XWNMih65Z2qgB+EnhRNBg/WcNftevNrIKo+j8usFyKvBeRBRK\n TMdu7ubGPzpMHMB7dbfEXqtQVow5meQlyEfgCYv3z8ZAsYnyeNnawwtziGFa7J99xxpPBiR6BM/\n URbcOXGfNza8amPDZl9xNZtuUEh/m+Dtoxs+QjAl+jm0k8LoXrWmTRwHeljegE0p+OLMF9omt2V\n JZn9W6NP142LbChfQHm5enJB/Q5RuXiwPA9xRdAt/+E0UrRk53tESi3UL7ZFkfMrJFHIP1403z3\n sBgR/fN+rWGlLeeB4qNMu3cES1M2AB6R7tJNa0VKQWfcsFnyw4sxsybIvomKuYyk9y9gZ73zJMQ\n 7WOviEgSFDeO7lG5MCGYma",
        "X-Received": "by 2002:a05:6808:1796:b0:45e:f0ef:382c with SMTP id\n 5614622812f47-4789f8fc6c0mr5389348b6e.44.1776009821004;\n Sun, 12 Apr 2026 09:03:41 -0700 (PDT)",
        "From": "Warner Losh <imp@bsdimp.com>",
        "Date": "Sun, 12 Apr 2026 10:02:30 -0600",
        "Subject": "[PATCH 07/17] bsd-user: Add FreeBSD ioctl type definitions",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20260412-ioctl-v1-7-1d998a460560@bsdimp.com>",
        "References": "<20260412-ioctl-v1-0-1d998a460560@bsdimp.com>",
        "In-Reply-To": "<20260412-ioctl-v1-0-1d998a460560@bsdimp.com>",
        "To": "qemu-devel@nongnu.org",
        "Cc": "Kyle Evans <kevans@freebsd.org>, Warner Losh <imp@bsdimp.com>,\n \"Stacey D. Son\" <sson@freebsd.org>",
        "X-Mailer": "b4 0.14.3",
        "X-Developer-Signature": "v=1; a=openpgp-sha256; l=3790; i=imp@bsdimp.com;\n h=from:subject:message-id; bh=8sPigRwG0vQFguN7CSo9z0cJsJ/owqmYKQDTqdJ4kxg=;\n b=owEBbQKS/ZANAwAKAWwc0Sh9sBEAAcsmYgBp28Ig05Sr6hl62UV+iB0OF4ZAhU33IIVvPzDIW\n Zhv61sHZVaJAjMEAAEKAB0WIQQgNfiUsAqjz3zN4bdsHNEofbARAAUCadvCIAAKCRBsHNEofbAR\n AIhXEACXV7NwkZBq23OdoufSnE96xlcRQt4tu5j5M2L40Jajzt6lZBYIsgKo9sejir7r5cXY5eJ\n oKiSFrkQtXeozE5pjeKlN5y3LCBj2D3WNzfGsd1jkRDW4AbpVMn5wFL7dcc6kXWlOneyWXLm+xQ\n GZcirDpkdkvtIPYidF/L3FDTNGs82fOIon1MWyqL8QxGHkaGTPU+yKqaJSykM2g8GnX2MxWNanS\n 0HKZHVQH5KhTw3scKdAlxQK0a+Q9MvioJPkEmlJxpGzK+pnrHzyEbV4CDcaVqFAv1cIdItT/4ff\n tZdkOW/dn9nEL4tZOfRBoswU5Y+sq6hJbik42XDpAX9/96PzKP6cCYOz0GbcE6v9iouwz/mU/DL\n 9olq5RLih3IwoZ4X9F1kT4MAvBFePU/TqaVvQOoEvgbDqf457TIEjTx+oWDVbDwALwO+Nr1o4v9\n zP4XYmD1/SYpgdVyw4nrXIzLRLTLMfOmmplajMEY6rQNkf5qumF9SF7dHMtaioO9Ld+KJuuun2I\n wX+WT8JSKPU/UfxWiLNcISHQVByGAk8MTGqpuXtTNkDkN9K07vq2y2zaWMWQCInzrX5rOAkJFcg\n 3YnQ1XrkFbfckYGfSBrWNZvLkaumsHxtAjLrmwTEV0SETzereJSIDaIW59guFlYECEtHmrbvAs1\n QEnxhgFAQsEEAPQ==",
        "X-Developer-Key": "i=imp@bsdimp.com; a=openpgp;\n fpr=2035F894B00AA3CF7CCDE1B76C1CD1287DB01100",
        "Received-SPF": "none client-ip=2607:f8b0:4864:20::230;\n envelope-from=imp@bsdimp.com; helo=mail-oi1-x230.google.com",
        "X-Spam_score_int": "-18",
        "X-Spam_score": "-1.9",
        "X-Spam_bar": "-",
        "X-Spam_report": "(-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n SPF_NONE=0.001, UPPERCASE_50_75=0.008 autolearn=no autolearn_force=no",
        "X-Spam_action": "no action",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "qemu development <qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-devel>",
        "List-Post": "<mailto:qemu-devel@nongnu.org>",
        "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>",
        "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"
    },
    "content": "From: \"Stacey D. Son\" <sson@freebsd.org>\n\nAdd os-ioctl-types.h with STRUCT macro definitions for ioctl type\nregistration. This header uses multiple inclusion with different\nSTRUCT macro definitions to generate both enums and type definitions.\n\nSigned-off-by: Stacey D. Son <sson@freebsd.org>\nSigned-off-by: Warner Losh <imp@bsdimp.com>\n---\n bsd-user/freebsd/os-ioctl-types.h | 104 ++++++++++++++++++++++++++++++++++++++\n 1 file changed, 104 insertions(+)",
    "diff": "diff --git a/bsd-user/freebsd/os-ioctl-types.h b/bsd-user/freebsd/os-ioctl-types.h\nnew file mode 100644\nindex 0000000000..ea0a7b7d92\n--- /dev/null\n+++ b/bsd-user/freebsd/os-ioctl-types.h\n@@ -0,0 +1,104 @@\n+/*\n+ * FreeBSD file related system call shims and definitions\n+ *\n+ * Copyright (c) 2013-2015 Stacey D. Son\n+ *\n+ * SPDX-License-Identifier: GPL-2.0-or-later\n+ */\n+\n+STRUCT_SPECIAL(termios)\n+\n+STRUCT(winsize,\n+        TYPE_SHORT, TYPE_SHORT, TYPE_SHORT, TYPE_SHORT)\n+\n+STRUCT(fiodgname_arg,\n+        TYPE_INT, TYPE_PTRVOID)\n+\n+STRUCT(ifconf,\n+        TYPE_INT, TYPE_PTRVOID)\n+\n+STRUCT(sockaddr,\n+        TYPE_SHORT, MK_ARRAY(TYPE_CHAR, 14))\n+\n+STRUCT(_ifreq_buffer,\n+        TYPE_PTRVOID, TYPE_PTRVOID)\n+\n+STRUCT(ifreq_char,\n+        MK_ARRAY(TYPE_CHAR, IFNAMSIZ), TYPE_CHAR)\n+\n+STRUCT(ifreq_short,\n+        MK_ARRAY(TYPE_CHAR, IFNAMSIZ), TYPE_SHORT)\n+\n+STRUCT(ifreq_int,\n+        MK_ARRAY(TYPE_CHAR, IFNAMSIZ), TYPE_INT)\n+\n+STRUCT(ifreq_ptr,\n+        MK_ARRAY(TYPE_CHAR, IFNAMSIZ), TYPE_PTRVOID)\n+\n+STRUCT(ifreq_cap,\n+        MK_ARRAY(TYPE_CHAR, IFNAMSIZ), MK_ARRAY(TYPE_INT, 2))\n+\n+STRUCT(ifreq_sockaddr,\n+        MK_ARRAY(TYPE_CHAR, IFNAMSIZ), MK_STRUCT(STRUCT_sockaddr))\n+\n+STRUCT(ifreq_buf,\n+        MK_ARRAY(TYPE_CHAR, IFNAMSIZ), MK_STRUCT(STRUCT__ifreq_buffer))\n+\n+STRUCT(ifdrv,\n+    MK_ARRAY(TYPE_CHAR, IFNAMSIZ), TYPE_PTRVOID, TYPE_PTRVOID, TYPE_PTRVOID)\n+\n+STRUCT(ifgroupreq_ptr,\n+    MK_ARRAY(TYPE_CHAR, IFNAMSIZ), TYPE_INT, TYPE_PTRVOID)\n+\n+STRUCT(ifmediareq,\n+    MK_ARRAY(TYPE_CHAR, IFNAMSIZ), TYPE_INT, TYPE_INT, TYPE_INT, TYPE_INT,\n+    TYPE_INT, TYPE_PTRVOID)\n+\n+STRUCT(ifstat,\n+    MK_ARRAY(TYPE_CHAR, IFNAMSIZ), MK_ARRAY(TYPE_CHAR, IFSTATMAX))\n+\n+STRUCT(ieee80211req,\n+    MK_ARRAY(TYPE_CHAR, IFNAMSIZ), TYPE_INT, TYPE_INT, TYPE_INT, TYPE_PTRVOID)\n+\n+STRUCT(lagg_reqport_lacp_opreq,\n+    MK_ARRAY(TYPE_CHAR, IFNAMSIZ), MK_ARRAY(TYPE_CHAR, IFNAMSIZ), TYPE_INT,\n+    TYPE_INT,\n+    /* struct lacp_opreq */\n+    TYPE_SHORT, TYPE_CHAR, TYPE_SHORT, TYPE_SHORT, TYPE_SHORT, TYPE_CHAR,\n+    TYPE_SHORT, TYPE_CHAR, TYPE_SHORT, TYPE_SHORT, TYPE_SHORT, TYPE_CHAR)\n+\n+STRUCT(lagg_reqall_lacp_opreq,\n+    MK_ARRAY(TYPE_CHAR, IFNAMSIZ), TYPE_INT, TYPE_PTRVOID, TYPE_PTRVOID,\n+    TYPE_INT,\n+    /* struct lacp_opreq */\n+    TYPE_SHORT, TYPE_CHAR, TYPE_SHORT, TYPE_SHORT, TYPE_SHORT, TYPE_CHAR,\n+    TYPE_SHORT, TYPE_CHAR, TYPE_SHORT, TYPE_SHORT, TYPE_SHORT, TYPE_CHAR)\n+\n+STRUCT(lagg_reqflags,\n+    MK_ARRAY(TYPE_CHAR, IFNAMSIZ), TYPE_INT)\n+\n+STRUCT(lagg_reqopts,\n+    MK_ARRAY(TYPE_CHAR, IFNAMSIZ), TYPE_INT, TYPE_INT, TYPE_INT, TYPE_INT,\n+    TYPE_INT)\n+\n+STRUCT(in6_ifreq_int,\n+    MK_ARRAY(TYPE_CHAR, IFNAMSIZ), TYPE_INT)\n+\n+STRUCT(in6_ifreq_ptr,\n+    MK_ARRAY(TYPE_CHAR, IFNAMSIZ), TYPE_PTRVOID)\n+\n+STRUCT(in6_ifreq_sockaddr_in6,\n+    MK_ARRAY(TYPE_CHAR, IFNAMSIZ),\n+    /* struct sockaddr_in6 */\n+    TYPE_CHAR, TYPE_CHAR, TYPE_SHORT, TYPE_INT, MK_ARRAY(TYPE_CHAR, 16),\n+    TYPE_INT)\n+\n+STRUCT(in6_ndireq,\n+    MK_ARRAY(TYPE_CHAR, IFNAMSIZ),\n+    /* struct nd_ifinfo */\n+    TYPE_INT, TYPE_INT, TYPE_INT, TYPE_INT, TYPE_INT, TYPE_INT, TYPE_INT,\n+    TYPE_CHAR, TYPE_CHAR, MK_ARRAY(TYPE_CHAR, 8), MK_ARRAY(TYPE_CHAR, 8),\n+    MK_ARRAY(TYPE_CHAR, 8))\n+\n+STRUCT(in6_ndifreq,\n+    MK_ARRAY(TYPE_CHAR, IFNAMSIZ), TYPE_PTRVOID)\n",
    "prefixes": [
        "07/17"
    ]
}