From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id C2CA87CE1 for ; Tue, 27 Mar 2018 01:19:12 +0200 (CEST) Received: by mail-wm0-f66.google.com with SMTP id v21so18401261wmc.1 for ; Mon, 26 Mar 2018 16:19:12 -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=VFSUm93zZeCDqV2VhAtzuJ+NMo0dxzrlndifo0XYKpU=; b=cnlPG8J7moO5/vM4BLq29W4Hqff4nNISwt/MR3iK6BUZ9pL71N8AHdel/mRyxxs+Ov wD9BIFCgwP2Nu4MlabcLBVT0EXONx4JfGGP49lhVIQxxHqOYzybdrctY8q88wa93IjdL V8A107Isz7HbredtIDkSzYm/roRAbmLf1+vzda62M6JRN/GlWxn3+8O2j7aBogWplNIu GuUQt+BDoT+Ge6SIr3O7Ky1o/H/oU4pbp7Rg3rnCZZll3LtnW4gm2bD3ejh+CJus84NI taH2Je88IR0XIOC69h0vDzWgTJAbxLBUMNL9DwHFj+z5N5Hh8GfJnGUOIQOQHwojI3/j biuw== 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=VFSUm93zZeCDqV2VhAtzuJ+NMo0dxzrlndifo0XYKpU=; b=I3dAQHJqec9etS7AR/b8+6NL5N9Zy5kpDJhSxK/2VGheUgWmJXPqioe+VLWpOfpGKY N+nNHR/6BW0JI/dWg19OM7A/Zm61OFJoje6sfRLQ9EuLGzDvUIk/IHxn5E32ZUzQ+5Al I8QZhkiJ9yEEIbcTYouVZWLzk/XH+az+47xzGNIKCooWS7PK7qz3Mwp6Ns6meANr1I9v WNjoINV8yjap7V4ts0AuvLcHgQTvJxnEcHNeDFeNIEfz841QnqQq3zMa77FAUbMwM+X+ BMtC+WC7M6Fk1xMLZ7Egv07AkNdmOWxA/+W1UucDIlgNVvYLSbgjuQA19ygxBugX3s55 Bpag== X-Gm-Message-State: AElRT7FNYcicvP9FsQ/EiOcaiKaMU4G86DoDvp/SllT1bo6T3pQrsynr reCYqpfk8nAUojucimioC/Go0gah X-Google-Smtp-Source: AIpwx4+T/4CqYfasBuQyT0xT7gk6U8C5oZDQ3oDKPQ0Q/GhNsh4NsVBCkXIii8ZrKKXJWLqIVO+TTw== X-Received: by 10.28.44.68 with SMTP id s65mr4148729wms.80.1522106352094; Mon, 26 Mar 2018 16:19:12 -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 67sm343712wra.9.2018.03.26.16.19.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Mar 2018 16:19:11 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Tue, 27 Mar 2018 01:18:30 +0200 Message-Id: <63ecbe92f158267aaf817c3183644d0fe39f6e9b.1522105876.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 v3 06/20] 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: Mon, 26 Mar 2018 23:19:13 -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 59b578e3e..95107d937 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, CLASS); \ +static void classfinifn_ ##nm(void) \ +{ \ + rte_class_unregister(&cls); \ } #ifdef __cplusplus -- 2.11.0