From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by dpdk.org (Postfix) with ESMTP id 7EFC2A48F for ; Thu, 15 Mar 2018 18:50:15 +0100 (CET) Received: by mail-wr0-f194.google.com with SMTP id z73so4923936wrb.0 for ; Thu, 15 Mar 2018 10:50:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=zKqnI2uTEJWVPkrLPcqo5Pvu+tqshJskX0Be5oKjt9A=; b=MpCfZaJ9shdvb09RfikTuTNK2l7N4axoOCRojyOT3jMTfu8MaMniHugwHqyTTWl1kj ftIUhSM6tRjywNTXBorCmbCmc841ifERk+Lgpoi3zqb1B0fuDfx82vlbFtPNJFwJOPkP PEWUot29evKxwZW7uzdceUiWHQ5foasUBVBKr0DXwJi7MQjTJa0tqx9t4FKXG/Nw79rn 3JhyseLrN2BbaPr2zSnr/WMZOUicj1ATU+akSLDMQ/U2Accp3Q+4AlpEZB+BNKkqA7eZ ptzZKtkrYhaIdfmj7UBJyIVzfqUhQU0xpTscS7jYEmmU+vJ9EcpnJ1tzRhsvsJiJrcSm higA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=zKqnI2uTEJWVPkrLPcqo5Pvu+tqshJskX0Be5oKjt9A=; b=OLhxCy8EuPmiN50LT7Iu/A0l6T9ysXrJ6woszy9tbCRiplAWiRNmS97bActGdgwBq9 RP9maBhPHD+ztqGijhm+b5VCmJEPMJLYsU0mD32S1N+No6WXZ1P1TiHl8T5JYO9cRPtf 8g0n2FxRRJ8XXp/C8CC7FCFdKLwY7S/Zjs2jendyLjH7XlRm1Cf64NnxJXk49C8EtbJR Py62N2bhP9kVyrL41WHwQjYdxvaAdB+1Cm3m2hvUG2UKVvfoXoL7YM6urbpMiE1un01J VCPadoDx418ao1U78QK0Atjg30Bvo/BZEGuX3d2CUhGdIHKvrA4+J+2VmK5OXxcJN6wO U0EQ== X-Gm-Message-State: AElRT7GjF3HQlmQAFVWCgvekfreBO4cxrN/jks0MF39SVRhD2pkokdee SJPA465FZmEQchfn+8fJjF7WRk5N X-Google-Smtp-Source: AG47ELvPgaDA5h7m+QXjN0bjA1MQ5YlReS6JhHTXowUhXP+bSbui71iQtJhI8szsWmycV7TqHF3Y/A== X-Received: by 10.223.154.181 with SMTP id a50mr7759984wrc.180.1521136214100; Thu, 15 Mar 2018 10:50:14 -0700 (PDT) Received: from bidouze.dev.6wind.com. (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id 69sm4756596wmp.36.2018.03.15.10.50.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Mar 2018 10:50:13 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Thu, 15 Mar 2018 18:49:33 +0100 Message-Id: <49655bc4ee4c272437bcec1fb7ed66c09863e482.1521124599.git.gaetan.rivet@6wind.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH v1 03/18] eal/class: register destructor X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Mar 2018 17:50:15 -0000 Signed-off-by: Gaetan Rivet --- lib/librte_eal/common/include/rte_class.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/librte_eal/common/include/rte_class.h b/lib/librte_eal/common/include/rte_class.h index beb0ba86c..a2e5f5551 100644 --- a/lib/librte_eal/common/include/rte_class.h +++ b/lib/librte_eal/common/include/rte_class.h @@ -112,6 +112,11 @@ static void classinitfn_ ##nm(void) \ {\ (cls).name = RTE_STR(nm);\ rte_class_register(&cls); \ +} \ +RTE_FINI_PRIO(classfinifn_ ##nm, 120); \ +static void classfinifn_ ##nm(void) \ +{ \ + rte_class_unregister(&cls); \ } #ifdef __cplusplus -- 2.11.0