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.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 C3EC1C433E0 for ; Wed, 17 Jun 2020 09:42:16 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (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 88CBA207E8 for ; Wed, 17 Jun 2020 09:42:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b="LclG0d78"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="pSH8v4vL" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 88CBA207E8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kroah.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.93) (envelope-from ) id 1jlUZZ-0003iM-I4; Wed, 17 Jun 2020 05:41:33 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1jlUZX-0003iA-Oc for kernelnewbies@kernelnewbies.org; Wed, 17 Jun 2020 05:41:31 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 23D5A5C0097; Wed, 17 Jun 2020 05:41:29 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 17 Jun 2020 05:41:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=w8LjNaxOdfQUZ4/tyYx5GbKLAqB Yx5Z9Ua8zH24sLx0=; b=LclG0d78yJveYejfTrJY85F9j544ZWradm+hMWJ5Tm8 fQRhUK8H06PJxQN3N07L244ckVK8Wd42uHSk8OgZh5yYkmKVdxYrEbPQ+z5PX9ps WVT22Htg1iFWj69bxfrojfUlOPNOVgb+uissJydyAz70ug9nHTMK0/s1noVgi0RE WijYvEskWV3jZWw3HD3xmh2msgHaECf72ImKUOsn6FJult8yqOHxt8J4V7U/ddTn Z3lqa3dP7K/N5T9/DUgjsITzw8+FtA0lsfqizLxnUJzEGvncbGuGDI1FS4xMmNdx uJ8IKLFi0XZkI2h1cJKqadpQxMyKUhaZliDo7NAnemA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=w8LjNa xOdfQUZ4/tyYx5GbKLAqBYx5Z9Ua8zH24sLx0=; b=pSH8v4vLluJnEHxNtaWnw+ 1d2iFicqdKGb+XnxE5Aixv0VoKsiSdUoM0Bcybn3tdE5X0UQBP0QulULHRIZVPrq JBagtMVUxdI7feKT9SpF+JrrLhtAzMwUXY5f44HGFmSkJ18XNxrkK08m6Zmvq4Zt 7qcUaW6r0v56k05334O2F/7zhx1kQMdKmf6HCKXAH9yxKckPBnAO8yKSvdS2YHvT TaLSj1WF2PRQ20r9J3PTu5X1UWRW5Z7JTojOOu0nx1iGnbtG3uxVRvnZY0MPxBmC NOds4/14Z67UQYCVE9qSSR26fMMvE3oWcNC6sXgP4G1AxRejSHzAvSH7PMSIkrmQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudejvddgvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefirhgvghcu mffjuceoghhrvghgsehkrhhorghhrdgtohhmqeenucggtffrrghtthgvrhhnpeevueehje fgfffgiedvudekvdektdelleelgefhleejieeugeegveeuuddukedvteenucfkphepkeef rdekiedrkeelrddutdejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepghhrvghgsehkrhhorghhrdgtohhm X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id BCE203061DC5; Wed, 17 Jun 2020 05:41:27 -0400 (EDT) Date: Wed, 17 Jun 2020 11:41:19 +0200 From: Greg KH To: Tomek The Messenger Subject: Re: the cost of EXPORT_SYMBOL_GPL Message-ID: <20200617094119.GA1940079@kroah.com> References: <20200616132714.GA4019625@kroah.com> <20200617085534.GA1732069@kroah.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Cc: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org On Wed, Jun 17, 2020 at 11:17:28AM +0200, Tomek The Messenger wrote: > OK, so I had to wrongly described something because in my company this is > popular approach to use /sys as some abstract layer to get access to > registers. Please do not do that. There are valid kernel apis to grant access to registers easily, and creating random files and directories in the root of sysfs is not only the incorrect way of doing it, you are making more work for yourself to do so, adding more code that is not needed. Do you have a pointer to the code so that we can provide help with showing the "correct" way to do all of this? thanks, greg k-h _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies