get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 46899,
    "url": "http://patches.dpdk.org/api/patches/46899/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20181016155802.2067-3-kevin.laatz@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20181016155802.2067-3-kevin.laatz@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20181016155802.2067-3-kevin.laatz@intel.com",
    "date": "2018-10-16T15:57:51",
    "name": "[v5,02/13] eal: make get runtime dir function public",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "e7acd9a0e1281abdc98382cbeb967ba4e0b44526",
    "submitter": {
        "id": 921,
        "url": "http://patches.dpdk.org/api/people/921/?format=api",
        "name": "Kevin Laatz",
        "email": "kevin.laatz@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20181016155802.2067-3-kevin.laatz@intel.com/mbox/",
    "series": [
        {
            "id": 1926,
            "url": "http://patches.dpdk.org/api/series/1926/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1926",
            "date": "2018-10-16T15:57:49",
            "name": "introduce telemetry library",
            "version": 5,
            "mbox": "http://patches.dpdk.org/series/1926/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/46899/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/46899/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 8F2B71B144;\n\tTue, 16 Oct 2018 17:57:51 +0200 (CEST)",
            "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n\tby dpdk.org (Postfix) with ESMTP id 2BF5F1B13E\n\tfor <dev@dpdk.org>; Tue, 16 Oct 2018 17:57:46 +0200 (CEST)",
            "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t16 Oct 2018 08:57:45 -0700",
            "from silpixa00397517.ir.intel.com (HELO\n\tsilpixa00397517.ger.corp.intel.com) ([10.237.222.54])\n\tby orsmga003.jf.intel.com with ESMTP; 16 Oct 2018 08:57:43 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.54,389,1534834800\"; d=\"scan'208\";a=\"92465337\"",
        "From": "Kevin Laatz <kevin.laatz@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "harry.van.haaren@intel.com, stephen@networkplumber.org,\n\tgaetan.rivet@6wind.com, shreyansh.jain@nxp.com, thomas@monjalon.net, \n\tmattias.ronnblom@ericsson.com, bruce.richardson@intel.com,\n\tKevin Laatz <kevin.laatz@intel.com>",
        "Date": "Tue, 16 Oct 2018 16:57:51 +0100",
        "Message-Id": "<20181016155802.2067-3-kevin.laatz@intel.com>",
        "X-Mailer": "git-send-email 2.9.5",
        "In-Reply-To": "<20181016155802.2067-1-kevin.laatz@intel.com>",
        "References": "<20181011165837.81030-1-kevin.laatz@intel.com>\n\t<20181016155802.2067-1-kevin.laatz@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v5 02/13] eal: make get runtime dir function\n\tpublic",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "This patch makes the eal_get_runtime_dir() API public so it can be used\nfrom outside EAL.\n\nSigned-off-by: Kevin Laatz <kevin.laatz@intel.com>\nAcked-by: Harry van Haaren <harry.van.haaren@intel.com>\n\n---\nNote: I have added rte_eal_get_runtime_dir() to the 18.11 version in the\n.map file instead of the EXPERIMENTAL section as the function already\nexisted, we just renamed it and made it public.\n---\n lib/librte_eal/bsdapp/eal/eal.c         |  2 +-\n lib/librte_eal/common/eal_filesystem.h  | 14 +++++++-------\n lib/librte_eal/common/include/rte_eal.h |  9 +++++++++\n lib/librte_eal/linuxapp/eal/eal.c       |  2 +-\n lib/librte_eal/rte_eal_version.map      |  1 +\n 5 files changed, 19 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/lib/librte_eal/bsdapp/eal/eal.c b/lib/librte_eal/bsdapp/eal/eal.c\nindex 27b7afc..ee94bc1 100644\n--- a/lib/librte_eal/bsdapp/eal/eal.c\n+++ b/lib/librte_eal/bsdapp/eal/eal.c\n@@ -142,7 +142,7 @@ eal_create_runtime_dir(void)\n }\n \n const char *\n-eal_get_runtime_dir(void)\n+rte_eal_get_runtime_dir(void)\n {\n \treturn runtime_dir;\n }\ndiff --git a/lib/librte_eal/common/eal_filesystem.h b/lib/librte_eal/common/eal_filesystem.h\nindex de05feb..f82b4fe 100644\n--- a/lib/librte_eal/common/eal_filesystem.h\n+++ b/lib/librte_eal/common/eal_filesystem.h\n@@ -27,7 +27,7 @@ eal_create_runtime_dir(void);\n \n /* returns runtime dir */\n const char *\n-eal_get_runtime_dir(void);\n+rte_eal_get_runtime_dir(void);\n \n #define RUNTIME_CONFIG_FNAME \"config\"\n static inline const char *\n@@ -35,7 +35,7 @@ eal_runtime_config_path(void)\n {\n \tstatic char buffer[PATH_MAX]; /* static so auto-zeroed */\n \n-\tsnprintf(buffer, sizeof(buffer) - 1, \"%s/%s\", eal_get_runtime_dir(),\n+\tsnprintf(buffer, sizeof(buffer) - 1, \"%s/%s\", rte_eal_get_runtime_dir(),\n \t\t\tRUNTIME_CONFIG_FNAME);\n \treturn buffer;\n }\n@@ -47,7 +47,7 @@ eal_mp_socket_path(void)\n {\n \tstatic char buffer[PATH_MAX]; /* static so auto-zeroed */\n \n-\tsnprintf(buffer, sizeof(buffer) - 1, \"%s/%s\", eal_get_runtime_dir(),\n+\tsnprintf(buffer, sizeof(buffer) - 1, \"%s/%s\", rte_eal_get_runtime_dir(),\n \t\t\tMP_SOCKET_FNAME);\n \treturn buffer;\n }\n@@ -55,7 +55,7 @@ eal_mp_socket_path(void)\n #define FBARRAY_NAME_FMT \"%s/fbarray_%s\"\n static inline const char *\n eal_get_fbarray_path(char *buffer, size_t buflen, const char *name) {\n-\tsnprintf(buffer, buflen, FBARRAY_NAME_FMT, eal_get_runtime_dir(), name);\n+\tsnprintf(buffer, buflen, FBARRAY_NAME_FMT, rte_eal_get_runtime_dir(), name);\n \treturn buffer;\n }\n \n@@ -66,7 +66,7 @@ eal_hugepage_info_path(void)\n {\n \tstatic char buffer[PATH_MAX]; /* static so auto-zeroed */\n \n-\tsnprintf(buffer, sizeof(buffer) - 1, \"%s/%s\", eal_get_runtime_dir(),\n+\tsnprintf(buffer, sizeof(buffer) - 1, \"%s/%s\", rte_eal_get_runtime_dir(),\n \t\t\tHUGEPAGE_INFO_FNAME);\n \treturn buffer;\n }\n@@ -78,7 +78,7 @@ eal_hugepage_data_path(void)\n {\n \tstatic char buffer[PATH_MAX]; /* static so auto-zeroed */\n \n-\tsnprintf(buffer, sizeof(buffer) - 1, \"%s/%s\", eal_get_runtime_dir(),\n+\tsnprintf(buffer, sizeof(buffer) - 1, \"%s/%s\", rte_eal_get_runtime_dir(),\n \t\t\tHUGEPAGE_DATA_FNAME);\n \treturn buffer;\n }\n@@ -99,7 +99,7 @@ eal_get_hugefile_path(char *buffer, size_t buflen, const char *hugedir, int f_id\n static inline const char *\n eal_get_hugefile_lock_path(char *buffer, size_t buflen, int f_id)\n {\n-\tsnprintf(buffer, buflen, HUGEFILE_LOCK_FMT, eal_get_runtime_dir(),\n+\tsnprintf(buffer, buflen, HUGEFILE_LOCK_FMT, rte_eal_get_runtime_dir(),\n \t\t\tf_id);\n \tbuffer[buflen - 1] = '\\0';\n \treturn buffer;\ndiff --git a/lib/librte_eal/common/include/rte_eal.h b/lib/librte_eal/common/include/rte_eal.h\nindex e114dcb..e19f74e 100644\n--- a/lib/librte_eal/common/include/rte_eal.h\n+++ b/lib/librte_eal/common/include/rte_eal.h\n@@ -498,6 +498,15 @@ enum rte_iova_mode rte_eal_iova_mode(void);\n const char *\n rte_eal_mbuf_user_pool_ops(void);\n \n+/**\n+ * Get the runtime directory of DPDK\n+ *\n+ * @return\n+ *  The runtime directory path of DPDK\n+ */\n+const char *\n+rte_eal_get_runtime_dir(void);\n+\n #ifdef __cplusplus\n }\n #endif\ndiff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c\nindex e28562b..e926f67 100644\n--- a/lib/librte_eal/linuxapp/eal/eal.c\n+++ b/lib/librte_eal/linuxapp/eal/eal.c\n@@ -150,7 +150,7 @@ eal_create_runtime_dir(void)\n }\n \n const char *\n-eal_get_runtime_dir(void)\n+rte_eal_get_runtime_dir(void)\n {\n \treturn runtime_dir;\n }\ndiff --git a/lib/librte_eal/rte_eal_version.map b/lib/librte_eal/rte_eal_version.map\nindex ccfb8a2..2de7197 100644\n--- a/lib/librte_eal/rte_eal_version.map\n+++ b/lib/librte_eal/rte_eal_version.map\n@@ -265,6 +265,7 @@ DPDK_18.08 {\n DPDK_18.11 {\n \tglobal:\n \n+\trte_eal_get_runtime_dir;\n \trte_strscpy;\n \n } DPDK_18.08;\n",
    "prefixes": [
        "v5",
        "02/13"
    ]
}