get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1023,
    "url": "http://patchwork.ozlabs.org/api/patches/1023/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20080923.003601.243492100.davem@davemloft.net/",
    "project": {
        "id": 7,
        "url": "http://patchwork.ozlabs.org/api/projects/7/?format=api",
        "name": "Linux network development",
        "link_name": "netdev",
        "list_id": "netdev.vger.kernel.org",
        "list_email": "netdev@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20080923.003601.243492100.davem@davemloft.net>",
    "list_archive_url": null,
    "date": "2008-09-23T07:36:01",
    "name": ": net: Add skb_queue_is_last().",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "3c04928cdf4ecbc19fd20fe59c850a54568bb325",
    "submitter": {
        "id": 15,
        "url": "http://patchwork.ozlabs.org/api/people/15/?format=api",
        "name": "David Miller",
        "email": "davem@davemloft.net"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/20080923.003601.243492100.davem@davemloft.net/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/1023/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1023/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<netdev-owner@vger.kernel.org>",
        "X-Original-To": "patchwork-incoming@ozlabs.org",
        "Delivered-To": "patchwork-incoming@ozlabs.org",
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.176.167])\n\tby ozlabs.org (Postfix) with ESMTP id 3A9BEDDEF9\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 23 Sep 2008 17:36:19 +1000 (EST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1753635AbYIWHgO (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tTue, 23 Sep 2008 03:36:14 -0400",
            "(majordomo@vger.kernel.org) by vger.kernel.org id S1753530AbYIWHgO\n\t(ORCPT <rfc822; netdev-outgoing>); Tue, 23 Sep 2008 03:36:14 -0400",
            "from 74-93-104-97-Washington.hfc.comcastbusiness.net\n\t([74.93.104.97]:35499\n\t\"EHLO sunset.davemloft.net\" rhost-flags-OK-FAIL-OK-OK)\n\tby vger.kernel.org with ESMTP id S1753498AbYIWHgN (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Tue, 23 Sep 2008 03:36:13 -0400",
            "from localhost (localhost [127.0.0.1])\n\tby sunset.davemloft.net (Postfix) with ESMTP id ADD78C8C181\n\tfor <netdev@vger.kernel.org>; Tue, 23 Sep 2008 00:36:01 -0700 (PDT)"
        ],
        "Date": "Tue, 23 Sep 2008 00:36:01 -0700 (PDT)",
        "Message-Id": "<20080923.003601.243492100.davem@davemloft.net>",
        "To": "netdev@vger.kernel.org",
        "Subject": "[PATCH]: net: Add skb_queue_is_last().",
        "From": "David Miller <davem@davemloft.net>",
        "X-Mailer": "Mew version 6.1 on Emacs 22.1 / Mule 5.0 (SAKAKI)",
        "Mime-Version": "1.0",
        "Content-Type": "Text/Plain; charset=us-ascii",
        "Content-Transfer-Encoding": "7bit",
        "Sender": "netdev-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<netdev.vger.kernel.org>",
        "X-Mailing-List": "netdev@vger.kernel.org"
    },
    "content": "net: Add skb_queue_is_last().\n\nSeveral bits of code want to know \"is this the last SKB in\na queue\", and all of them implement this by hand.\n\nProvide an common interface to make this check.\n\nSigned-off-by: David S. Miller <davem@davemloft.net>\n---\n include/linux/skbuff.h |   13 +++++++++++++\n 1 files changed, 13 insertions(+), 0 deletions(-)",
    "diff": "diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h\nindex 4a144e8..3a5838d 100644\n--- a/include/linux/skbuff.h\n+++ b/include/linux/skbuff.h\n@@ -473,6 +473,19 @@ static inline int skb_queue_empty(const struct sk_buff_head *list)\n }\n \n /**\n+ *\tskb_queue_is_last - check if skb is the last entry in the queue\n+ *\t@list: queue head\n+ *\t@skb: buffer\n+ *\n+ *\tReturns true if @skb is the last buffer on the list.\n+ */\n+static inline bool skb_queue_is_last(const struct sk_buff_head *list,\n+\t\t\t\t     const struct sk_buff *skb)\n+{\n+\treturn (skb->next == (struct sk_buff *) list);\n+}\n+\n+/**\n  *\tskb_get - reference buffer\n  *\t@skb: buffer to reference\n  *\n",
    "prefixes": []
}