get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1141,
    "url": "http://patchwork.ozlabs.org/api/patches/1141/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20080923100240.5168d861@extreme/",
    "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": "<20080923100240.5168d861@extreme>",
    "list_archive_url": null,
    "date": "2008-09-23T17:02:40",
    "name": "[2/2] netdev: docbook comment update (revised)",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "4285d4732c3a3393cecd61dfe6efdc11a603184f",
    "submitter": {
        "id": 423,
        "url": "http://patchwork.ozlabs.org/api/people/423/?format=api",
        "name": "stephen hemminger",
        "email": "shemminger@vyatta.com"
    },
    "delegate": {
        "id": 34,
        "url": "http://patchwork.ozlabs.org/api/users/34/?format=api",
        "username": "davem",
        "first_name": "David",
        "last_name": "Miller",
        "email": "davem@davemloft.net"
    },
    "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/20080923100240.5168d861@extreme/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/1141/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1141/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 D6744DE017\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 24 Sep 2008 03:03:02 +1000 (EST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752506AbYIWRCz (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tTue, 23 Sep 2008 13:02:55 -0400",
            "(majordomo@vger.kernel.org) by vger.kernel.org id S1752605AbYIWRCz\n\t(ORCPT <rfc822; netdev-outgoing>); Tue, 23 Sep 2008 13:02:55 -0400",
            "from mail.vyatta.com ([76.74.103.46]:56276 \"EHLO mail.vyatta.com\"\n\trhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP\n\tid S1752499AbYIWRCy (ORCPT <rfc822;netdev@vger.kernel.org>);\n\tTue, 23 Sep 2008 13:02:54 -0400",
            "from localhost (localhost.localdomain [127.0.0.1])\n\tby mail.vyatta.com (Postfix) with ESMTP id 7C1CD4F47C7;\n\tTue, 23 Sep 2008 10:02:53 -0700 (PDT)",
            "from mail.vyatta.com ([127.0.0.1])\n\tby localhost (mail.vyatta.com [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 0yhneIFDB5Tu; Tue, 23 Sep 2008 10:02:48 -0700 (PDT)",
            "from extreme (pool-71-182-88-81.ptldor.fios.verizon.net\n\t[71.182.88.81])\n\tby mail.vyatta.com (Postfix) with ESMTP id 672B94F4263;\n\tTue, 23 Sep 2008 10:02:47 -0700 (PDT)"
        ],
        "X-Virus-Scanned": "amavisd-new at ",
        "Date": "Tue, 23 Sep 2008 10:02:40 -0700",
        "From": "Stephen Hemminger <shemminger@vyatta.com>",
        "To": "\"Randy.Dunlap\" <rdunlap@xenotime.net>, David Miller <davem@davemloft.net>",
        "Cc": "netdev@vger.kernel.org",
        "Subject": "[PATCH 2/2] netdev: docbook comment update (revised)",
        "Message-ID": "<20080923100240.5168d861@extreme>",
        "In-Reply-To": "<Pine.LNX.4.64.0809230917020.27041@shark.he.net>",
        "References": "<20080923083750.59eaac97@extreme>\n\t<20080923091035.102d4106@extreme>\n\t<Pine.LNX.4.64.0809230917020.27041@shark.he.net>",
        "Organization": "Vyatta",
        "X-Mailer": "Claws Mail 3.3.1 (GTK+ 2.12.9; x86_64-pc-linux-gnu)",
        "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": "Add more docbook comments to network device functions and cleanup\nthe comments.\n\nSigned-off-by: Stephen Hemminger <shemminger@vyatta.com>\n--\nTo unsubscribe from this list: send the line \"unsubscribe netdev\" in\nthe body of a message to majordomo@vger.kernel.org\nMore majordomo info at  http://vger.kernel.org/majordomo-info.html",
    "diff": "--- a/net/core/dev.c\t2008-09-23 08:32:48.000000000 -0700\n+++ b/net/core/dev.c\t2008-09-23 10:00:10.000000000 -0700\n@@ -956,6 +956,7 @@ rollback:\n  *\tdev_set_alias - change ifalias of a device\n  *\t@dev: device\n  *\t@alias: name up to IFALIASZ\n+ *\t@len: limit of bytes to copy from info\n  *\n  *\tSet ifalias for a device,\n  */\n@@ -3322,6 +3323,12 @@ static void dev_addr_discard(struct net_\n \tnetif_addr_unlock_bh(dev);\n }\n \n+/**\n+ *\tdev_get_flags - get flags reported to userspace\n+ *\t@dev: device\n+ *\n+ *\tGet the combination of flag bits exported throug APIs to userspace.\n+ */\n unsigned dev_get_flags(const struct net_device *dev)\n {\n \tunsigned flags;\n@@ -3346,6 +3353,14 @@ unsigned dev_get_flags(const struct net_\n \treturn flags;\n }\n \n+/**\n+ *\tdev_change_flags - change device settings\n+ *\t@dev: device\n+ *\t@flags: device state flags\n+ *\n+ *\tChange settings on device based state flags. The flags are\n+ *\tin the userspace exported format.\n+ */\n int dev_change_flags(struct net_device *dev, unsigned flags)\n {\n \tint ret, changes;\n@@ -3415,6 +3430,13 @@ int dev_change_flags(struct net_device *\n \treturn ret;\n }\n \n+/**\n+ *\tdev_set_mtu - Change maximum transfer unit\n+ *\t@dev: device\n+ *\t@new_mtu: new transfer unit\n+ *\n+ *\tChange the maximum transfer size of the network device.\n+ */\n int dev_set_mtu(struct net_device *dev, int new_mtu)\n {\n \tint err;\n@@ -3439,6 +3461,13 @@ int dev_set_mtu(struct net_device *dev, \n \treturn err;\n }\n \n+/**\n+ *\tdev_set_mac_address - Change Media Access Control Address\n+ *\t@dev: device\n+ *\t@sa: new address\n+ *\n+ *\tChange the hardware (MAC) address of the device\n+ */\n int dev_set_mac_address(struct net_device *dev, struct sockaddr *sa)\n {\n \tint err;\n@@ -4342,7 +4371,12 @@ void free_netdev(struct net_device *dev)\n \tput_device(&dev->dev);\n }\n \n-/* Synchronize with packet receive processing. */\n+/**\n+ *\tsynchronize_net -  Synchronize with packet receive processing\n+ *\n+ *\tWait for packets currently being received to be done.\n+ *\tDoes not block later packets from starting.\n+ */\n void synchronize_net(void)\n {\n \tmight_sleep();\n@@ -4644,7 +4678,7 @@ netdev_dma_event(struct dma_client *clie\n }\n \n /**\n- * netdev_dma_regiser - register the networking subsystem as a DMA client\n+ * netdev_dma_register - register the networking subsystem as a DMA client\n  */\n static int __init netdev_dma_register(void)\n {\n@@ -4745,6 +4779,14 @@ err_name:\n \treturn -ENOMEM;\n }\n \n+/**\n+ *\tnetdev_drivername - network driver for the device\n+ *\t@dev: network device\n+ *\t@buffer: buffer for resulting name\n+ *\t@len: size of buffer\n+ *\n+ *\tDetermine network driver for device.\n+ */\n char *netdev_drivername(const struct net_device *dev, char *buffer, int len)\n {\n \tconst struct device_driver *driver;\n",
    "prefixes": [
        "2/2"
    ]
}