get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2195227,
    "url": "http://patchwork.ozlabs.org/api/patches/2195227/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260210-freebsd-inotify-v1-1-009430118133@bsdimp.com/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/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": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260210-freebsd-inotify-v1-1-009430118133@bsdimp.com>",
    "list_archive_url": null,
    "date": "2026-02-10T15:43:48",
    "name": "freebsd: FreeBSD 15 has native inotify",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "c9e33d6bd08c87abe102ce49010e8d3d112ebe03",
    "submitter": {
        "id": 1896,
        "url": "http://patchwork.ozlabs.org/api/people/1896/?format=api",
        "name": "Warner Losh",
        "email": "imp@bsdimp.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260210-freebsd-inotify-v1-1-009430118133@bsdimp.com/mbox/",
    "series": [
        {
            "id": 491692,
            "url": "http://patchwork.ozlabs.org/api/series/491692/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=491692",
            "date": "2026-02-10T15:43:48",
            "name": "freebsd: FreeBSD 15 has native inotify",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/491692/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2195227/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2195227/checks/",
    "tags": {},
    "related": [],
    "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.20230601.gappssmtp.com\n header.i=@bsdimp-com.20230601.gappssmtp.com header.a=rsa-sha256\n header.s=20230601 header.b=uZQa0ufc;\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=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from lists.gnu.org (lists.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 4f9R1w2NMxz1xwG\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 11 Feb 2026 02:53:56 +1100 (AEDT)",
            "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1vpq2e-0001MP-9X; Tue, 10 Feb 2026 10:52:44 -0500",
            "from eggs.gnu.org ([209.51.188.92])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <imp@bsdimp.com>) id 1vpq0l-00014x-3B\n for qemu-devel@nongnu.org; Tue, 10 Feb 2026 10:52:40 -0500",
            "from mail-ot1-x32e.google.com ([2607:f8b0:4864:20::32e])\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 1vppuN-0003NV-9V\n for qemu-devel@nongnu.org; Tue, 10 Feb 2026 10:44:13 -0500",
            "by mail-ot1-x32e.google.com with SMTP id\n 46e09a7af769-7cfdf7e7d19so3683705a34.2\n for <qemu-devel@nongnu.org>; Tue, 10 Feb 2026 07:44:08 -0800 (PST)",
            "from rebo.bsdimp.com ([50.253.99.174])\n by smtp.gmail.com with ESMTPSA id\n 46e09a7af769-7d46479964fsm9872976a34.22.2026.02.10.07.44.06\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 10 Feb 2026 07:44:06 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1770738247; x=1771343047;\n darn=nongnu.org;\n h=cc:to:message-id:content-transfer-encoding:mime-version:subject\n :date:from:from:to:cc:subject:date:message-id:reply-to;\n bh=RyEGPal6sMPxAA1OJWLh+7E7jJfQjtzO8gdCkQ/32NQ=;\n b=uZQa0ufcpGGt2KRP4LxVqPrZAzj5KVjsclASC0zpi5EX0yu1s+58QPucINIL3ykwPI\n wkatdi54ZdQUJc3V+R+DMmYFyFW75Jk/ZAbqAo+jF71FgCQVIV6fFflHnHabDYCM/ns3\n JcockWiGZlqNAkNOwt5SO2sRNzcusOBCI6KPsxVAk1NgvcOa3dMWnWn+Vwf4mlcr3vG4\n fhlsDD/Sng6P//DyvlbMqO3YLKPlIczl7l7Xp1zr27mGHjd55vlJseNF2/1ct2P7K7h9\n UyZhQmReKdMo8F7TXP92kMk6+cKKMJSvFnXGm929Z3lYkwfb5C3pyo+kBY2J1a2swAqX\n VqGQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1770738247; x=1771343047;\n h=cc:to:message-id:content-transfer-encoding:mime-version:subject\n :date:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=RyEGPal6sMPxA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MTP id\n 46e09a7af769-7d4643e559fmr10186177a34.6.1770738247087;\n Tue, 10 Feb 2026 07:44:07 -0800 (PST)",
        "From": "Warner Losh <imp@bsdimp.com>",
        "Date": "Tue, 10 Feb 2026 08:43:48 -0700",
        "Subject": "[PATCH] freebsd: FreeBSD 15 has native inotify",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "8bit",
        "Message-Id": "<20260210-freebsd-inotify-v1-1-009430118133@bsdimp.com>",
        "X-B4-Tracking": "v=1; b=H4sIADNSi2kC/x3MQQqAIBBA0avErBN0iJKuEi1Sx5qNhkYU4t2Tl\n m/xf4FMiSnD3BVIdHPmGBpU34E9trCTYNcMKHGUqKTwichkJzjEi/0rtHFyMmj14BS06kzk+fm\n Py1rrB9LrUh9hAAAA",
        "X-Change-ID": "20260210-freebsd-inotify-8bd07b2c84d1",
        "To": "qemu-devel@nongnu.org",
        "Cc": "Paolo Bonzini <pbonzini@redhat.com>,\n =?utf-8?q?Marc-Andr=C3=A9_Lureau?= <marcandre.lureau@redhat.com>,\n\t=?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= <berrange@redhat.com>, =?utf-8?q?Phil?=\n\t=?utf-8?q?ippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>,\n  Warner Losh <imp@bsdimp.com>",
        "X-Mailer": "b4 0.14.3",
        "X-Developer-Signature": "v=1; a=openpgp-sha256; l=1936; i=imp@bsdimp.com;\n h=from:subject:message-id; bh=xEHoOvN3TkR/IWEoiMhI679mber/sRBzm2hmlAn2tXo=;\n b=owEBbQKS/ZANAwAKAWwc0Sh9sBEAAcsmYgBpi1I3JOrFcXtzSwFREfWMs1Ql4LGVLnrSr9GZX\n KkdpgyTga2JAjMEAAEKAB0WIQQgNfiUsAqjz3zN4bdsHNEofbARAAUCaYtSNwAKCRBsHNEofbAR\n ADncEAC7h6hBz+GOfTIZNpPplQbRvYDi6Rv3Do82X4Yua5L63jqFEnT2i+g6144mHnA5HKoQdYV\n l0pXWNYt5ZcZmTM7EcAgROiDYwE39hnwva8vVPsYz1sBi1DwbI3XG46kKuWimEYvqVxmqJsKFP+\n W9f6uOpqAkRg8C2Pi4UQ/QSNGfuTu4J4vGwdw9LHw6PEWmEN04CoiSqCiLwQWEArlktBaLL8nz3\n vVLy8NTGMX1L0Uz0SHCTGkqRTnCx9/2iNAlyaDKjfdwOLMovvlKej8AbYXLERnLDLLj8Ao4qB96\n nzjYIhAbpbsIgovzK8m+H81vrwPzKOXXB07VWSrn+G12bq48WX8GOdbFsIEmXBh5FsO1813dlOg\n aHmI02kVThIMAjZAyrWrXplz+z+uHtCEFP0ua3ZtouWpJOiKjcL+UYpuQwuP2YyHeszs1JYNQU3\n ONjt1rf+IkUbnjWfAy2cdVBI1BuoK8f1UAwIrRk0Gs6OhbP1QKcFKTiXkppMP+T6x6DnNSMZ+pv\n d994HwmnLdoz4mW9yEwouXLKrhOYsDa0rV5UtOVc5moyFsdJFqMt+VbJVKlI8dCeg0s/KpeDiQV\n LhWRpIMXpRkm8Eh2WOH6j9mljpfHqrjT2dY2JGkPHri+8PeLAHYh+Xqskl6BA/XXVUFxKr+Z/Hf\n QJS0Ze0PjkQ92Ng==",
        "X-Developer-Key": "i=imp@bsdimp.com; a=openpgp;\n fpr=2035F894B00AA3CF7CCDE1B76C1CD1287DB01100",
        "Received-SPF": "none client-ip=2607:f8b0:4864:20::32e;\n envelope-from=imp@bsdimp.com; helo=mail-ot1-x32e.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 autolearn=ham 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": "Check to make sure that we have inotify in libc, before looking for it\nin libinotify.\n\nCc: Paolo Bonzini <pbonzini@redhat.com>\nCc: Marc-André Lureau <marcandre.lureau@redhat.com>\nCc: Daniel P. Berrange <berrange@redhat.com>\nCc: Philippe Mathieu-Daudé <philmd@linaro.org>\nSigned-off-by: Warner Losh <imp@bsdimp.com>\n---\nFreeBSD 15 and newer now has a native inotify implementation. Check for\nit before checking for the wrapper libinotify library which is needed in\nFreeBSD 14 and earlier. Make the check dependent on symbols, not host\nversion.\n\nSeparate series because it's really independent of the two other\npatch series I have submitted and it is more important.\n---\n meson.build | 16 +++++++++-------\n 1 file changed, 9 insertions(+), 7 deletions(-)\n\n\n---\nbase-commit: 0b91040d23dc8820724a60c811223b777f3bc6b7\nchange-id: 20260210-freebsd-inotify-8bd07b2c84d1\n\nBest regards,",
    "diff": "diff --git a/meson.build b/meson.build\nindex 2d114e9018..537f50283f 100644\n--- a/meson.build\n+++ b/meson.build\n@@ -2662,13 +2662,15 @@ have_inotify_init = cc.has_header_symbol('sys/inotify.h', 'inotify_init')\n have_inotify_init1 = cc.has_header_symbol('sys/inotify.h', 'inotify_init1')\n inotify = not_found\n if (have_inotify_init or have_inotify_init1) and host_os == 'freebsd'\n-  # libinotify-kqueue\n-  inotify = cc.find_library('inotify')\n-  if have_inotify_init\n-    have_inotify_init = inotify.found()\n-  endif\n-  if have_inotify_init1\n-    have_inotify_init1 = inotify.found()\n+  if not cc.has_function('inotify_init') and not cc.has_function('inotify_init1')\n+    inotify = cc.find_library('inotify')\n+    # libinotify-kqueue\n+    if have_inotify_init\n+      have_inotify_init = inotify.found()\n+    endif\n+    if have_inotify_init1\n+      have_inotify_init1 = inotify.found()\n+    endif\n   endif\n endif\n config_host_data.set('CONFIG_INOTIFY', have_inotify_init)\n",
    "prefixes": []
}