Message ID | 1512140407-13534-3-git-send-email-odpbot@yandex.ru |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1246773qgn; Fri, 1 Dec 2017 07:01:24 -0800 (PST) X-Google-Smtp-Source: AGs4zMZuduOyvHixl6MxldhD5eD4bbM1tj5DHdtHGiz2qvoAnePVvaQ1g7qFetwrfk6KjfSoot2f X-Received: by 10.55.44.71 with SMTP id s68mr7766297qkh.37.1512140484606; Fri, 01 Dec 2017 07:01:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512140484; cv=none; d=google.com; s=arc-20160816; b=krG1Afi562qFzpoodo8PppYGxJ9tDqCGF3mv3jJ7pGYgpQMRLTv4QSOqXVHjrUEefT mdx2FKxiQLFHyQFoe/OQiviJk53viKaH6oZpdOgXgOZe1Twve+r7K6I025qKNOLrs770 60Eyo6N0F6um/YbnS0+CuXaHe6hKXVBbvkBEq2VAn32eaTmiAMnuiFV+Xcq6WxxRBcFv I7gSuqYat4rKfrAU5YsZngDEjzfe8zPvt0I/j1h67EpBnPPVEJiwHG9Ifal1dlN44zQO h78tucFtB7jXz1oKdzzTiNOPWe98x4VLMdwHTz51SMOmn66YC+Kg7Ja517shUlsST+ge QaAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=IwzDp3tHUwbiempT4Fk6qVkcR8G8HM9w56Zs+1uPTj0=; b=I+Faepg7YUGJmyH0QwkBQ4KxNvDpO9lNeLEvg7dRg6s/ntmKU1BNbAPgCugljgH23Q EJwIhmnnmQBcXqlXut6jTSO4k1nbThiIL/5sYspuLirkddpUO1sv4Qup/LsD19IZkmv3 Nlu21srxf21Jog0ww6pcDXMwN+A+igz0T/s4P5Igcle+HiwSrYAmJ3EQBwtcxf+Z35aC ZXQtsawz7oBV2nFDp5DWNSKQf1opNXLJRrxKtVRP09obDkBzk6VkrvzqwnmGGIiDB1Wn KZavqME2qh6mt6/QR0KftslX3tlIU9ZfeOLQWjw7NxWSVPLUhVtUWBLSYVnWPvSxb5Ve SKMA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: <lng-odp-bounces@lists.linaro.org> Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id x3si4316554qtf.197.2017.12.01.07.01.24; Fri, 01 Dec 2017 07:01:24 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 43DCF60976; Fri, 1 Dec 2017 15:01:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 38A2E60841; Fri, 1 Dec 2017 15:00:26 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 531BF60977; Fri, 1 Dec 2017 15:00:19 +0000 (UTC) Received: from forward105j.mail.yandex.net (forward105j.mail.yandex.net [5.45.198.248]) by lists.linaro.org (Postfix) with ESMTPS id C73C060950 for <lng-odp@lists.linaro.org>; Fri, 1 Dec 2017 15:00:16 +0000 (UTC) Received: from mxback1j.mail.yandex.net (mxback1j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10a]) by forward105j.mail.yandex.net (Yandex) with ESMTP id 5C768186139 for <lng-odp@lists.linaro.org>; Fri, 1 Dec 2017 18:00:15 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback1j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id V7indTvc9Z-0F94Tr7S; Fri, 01 Dec 2017 18:00:15 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id I6qrBsStkX-0Ee4qxit; Fri, 01 Dec 2017 18:00:14 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot <odpbot@yandex.ru> To: lng-odp@lists.linaro.org Date: Fri, 1 Dec 2017 17:59:57 +0300 Message-Id: <1512140407-13534-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512140407-13534-1-git-send-email-odpbot@yandex.ru> References: <1512140407-13534-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 318 Subject: [lng-odp] [PATCH API-NEXT v1 2/12] linux-gen: event: free multiple functions X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" <lng-odp.lists.linaro.org> List-Unsubscribe: <https://lists.linaro.org/mailman/options/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=unsubscribe> List-Archive: <http://lists.linaro.org/pipermail/lng-odp/> List-Post: <mailto:lng-odp@lists.linaro.org> List-Help: <mailto:lng-odp-request@lists.linaro.org?subject=help> List-Subscribe: <https://lists.linaro.org/mailman/listinfo/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=subscribe> Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" <lng-odp-bounces@lists.linaro.org> |
Series |
[API-NEXT,v1,1/12] api: event: add free multiple
|
expand
|
diff --git a/platform/linux-generic/odp_event.c b/platform/linux-generic/odp_event.c index 66bc11fe4..2b0a7cddc 100644 --- a/platform/linux-generic/odp_event.c +++ b/platform/linux-generic/odp_event.c @@ -60,6 +60,19 @@ void odp_event_free(odp_event_t event) } } +void odp_event_free_multi(const odp_event_t event[], int num) +{ + int i; + + for (i = 0; i < num; i++) + odp_event_free(event[i]); +} + +void odp_event_free_sp(const odp_event_t event[], int num) +{ + odp_event_free_multi(event, num); +} + uint64_t odp_event_to_u64(odp_event_t hdl) { return _odp_pri(hdl);