From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A7402C433E0 for ; Wed, 10 Jun 2020 02:33:08 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7119120734 for ; Wed, 10 Jun 2020 02:33:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=braap-org.20150623.gappssmtp.com header.i=@braap-org.20150623.gappssmtp.com header.b="w1pCcRUb" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7119120734 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=braap.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:37940 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jiqY7-0001lP-MW for qemu-devel@archiver.kernel.org; Tue, 09 Jun 2020 22:33:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50656) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jiqXX-0001MY-BJ for qemu-devel@nongnu.org; Tue, 09 Jun 2020 22:32:31 -0400 Received: from mail-qk1-x742.google.com ([2607:f8b0:4864:20::742]:42655) by eggs.gnu.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jiqXV-0000LH-VJ for qemu-devel@nongnu.org; Tue, 09 Jun 2020 22:32:31 -0400 Received: by mail-qk1-x742.google.com with SMTP id l17so675318qki.9 for ; Tue, 09 Jun 2020 19:32:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=braap-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=DlsP8MIR2b0GIOCkKR8pQs4MKYr5Wfpo8xVkyJ/JH7I=; b=w1pCcRUbFKLnlRvMNlyIa8n/QaL8XcUEGA6hTJY40NT+5EI0ysgh8lqFnan7T3U3L7 SvlrtfBGNFuE0GKxhfMbVb4Dra1eAuajM2Qnpcb9yM9QjE933UIlMVTN+WIEpyRFkAu9 OEgl+Y7RWWV1WTZB8ORZHA3EihXOCbo3L9Ky87+Cr4oIZdE/5mIPY3zKW6l2LikKVEmF tuw+hev1qPADCMNvxO0prKbsEEoazHzXBb9oP2IjvOO7h2cary5DvMwCxcp2zkRRZBIx bDYjMhcdxhzGolTyOhSdCg1YPYHNXJkdeyXEjAtjAYuLCurUowx21vbebuFUNf5mFfOi 08cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=DlsP8MIR2b0GIOCkKR8pQs4MKYr5Wfpo8xVkyJ/JH7I=; b=AqMhKy43O44SMxWd8oEuUoiLIuqtuWXrzIr4HnDSQ6uNzQhJ01G4ydGfq//8Fylcpp qkHESLseFWn+INVibxNsh2rA3uNcx/Oi5lrH8S5+mGJHcq86UukmEuqXdWs8ge6ngLrG 0HFMJEGBpRvlGLGDLHS0YL2lF/7AwjA443C5kxF1ApXuIRwXwCod22hH50Yq2rPvE22K bCJnoIaMVknDUFVAVLhDzlLH3N+vTC6vq6XY9OgQoUNCEYpwVx2l0BYSrMlreH3IwtOi qH9V9FJNdlWwmgbNNUOzgdW8YcioaORyyflkCYfdA9BRuBzb/aNwqjSk+8cS4V2cYPBD 2LtQ== X-Gm-Message-State: AOAM533bnbCYZ0h0zZK4sjMFjzgaAC/hQE7QL56tiPR0ANN2685eGwul 9HZQwIQJMQrRN9g1G5v1y/dk0A== X-Google-Smtp-Source: ABdhPJwA+t70HGrX4P2yTbODQ0QKPhLJ4sjiRzbhbL/7AoHVc770f6gnbJXKkxl181IG53HjIZgMbw== X-Received: by 2002:a37:650:: with SMTP id 77mr990397qkg.369.1591756348568; Tue, 09 Jun 2020 19:32:28 -0700 (PDT) Received: from localhost ([70.19.54.161]) by smtp.gmail.com with ESMTPSA id n13sm13457747qtb.20.2020.06.09.19.32.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jun 2020 19:32:27 -0700 (PDT) Date: Tue, 9 Jun 2020 22:32:27 -0400 From: "Emilio G. Cota" To: Alex =?iso-8859-1?Q?Benn=E9e?= Subject: Re: [PATCH v1 7/9] plugins: add API to return a name for a IO device Message-ID: <20200610023227.GA3816134@sff> References: <20200602154624.4460-1-alex.bennee@linaro.org> <20200602154624.4460-8-alex.bennee@linaro.org> <20200608034504.GA3619843@sff> <87zh9e6kxy.fsf@linaro.org> <20200609040902.GA3724030@sff> <87y2ow4hrx.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87y2ow4hrx.fsf@linaro.org> Received-SPF: softfail client-ip=2607:f8b0:4864:20::742; envelope-from=cota@braap.org; helo=mail-qk1-x742.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: robert.foley@linaro.org, qemu-devel@nongnu.org, robhenry@microsoft.com, aaron@os.amperecomputing.com, kuhn.chenqun@huawei.com, peter.puhov@linaro.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Tue, Jun 09, 2020 at 12:09:54 +0100, Alex Bennée wrote: > How about a g_intern_string() as a non-freeable const char that can also > be treated as canonical? I like it. Didn't know about g_intern_string (I see it's implemented as an append-only hash table protected by a lock). Cheers, Emilio