Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp592118rwi; Wed, 2 Nov 2022 15:54:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6G+iDpz5Kp9RjH6/lA87WWHKOhkHBRyZDa1Vu2JX60xBKhjzaP1KGGkMkMF4Td9ZzVpKNW X-Received: by 2002:a17:90a:7808:b0:214:1a8a:a40a with SMTP id w8-20020a17090a780800b002141a8aa40amr9398478pjk.137.1667429673317; Wed, 02 Nov 2022 15:54:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667429673; cv=none; d=google.com; s=arc-20160816; b=vijqvm4l42n1QYLrqUXB5nFVI6Um0MjYkJG8BSqxeQqj8sQJ1GWTZIcY0NVuSEBBNZ fP4kKJwTHW87DuqkU7XSYQH4B58pA6irBDCzN2EVagm0azPnkWKXV7h8OHpCVowRv6V/ hANoMfpyjjyCWCyQgYkVUnsswdk5am8NUKQX289PFEltaaZw9eV+MjaSMFYkoRjx8nap 0SQ1y60jW14jrGRMamP2aKcAYZdRSgIrYrqFQmA2UyIe4Aifg8XpkEglvRMrDmBh32o6 RPixAExfmHaF/ySRqhci2JechJiWAPyWZX0atIahMBSYFIwA28t9+f7QggoggguFzFTT hbEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gJyjOo7kho01s2T8yYmBUitVdZH3INVIye1hDNgKdNI=; b=HNaUaaMxPO1d5lK35tY56q+ayuduIVk1tci9aEfj8j1pOoP98cWr0IFDN5tmOWedLH SGcMzBKC+Wb9uDKNJD6j60zwX2Ra6O5/RQ7fsT2YtfjxSfS+e/kQlvp0ex8qyJ+kqL6g xu4Oibo86yerf3bvQUoxTdEtiS8Bie+8pfYrZA/Zk0rGNqe/Lynfo0oK57aA11sfj2xA hSHkGjIMLPsHJXainC33qYPcGtD2/2gRxmkMwzTalcga/J3vRv1/DdNU6nZJjb76Lq8/ EcDm5pkET3VMKdiU5uO7F/9snF1OXTEF6meo95BZyG3k8kNWJJwhbNhHYabdb8qG3HZO 2Dew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OMrfYWvk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c5-20020a170903234500b00186a06a3396si19760494plh.153.2022.11.02.15.54.18; Wed, 02 Nov 2022 15:54:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OMrfYWvk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230265AbiKBWTc (ORCPT + 97 others); Wed, 2 Nov 2022 18:19:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230491AbiKBWT3 (ORCPT ); Wed, 2 Nov 2022 18:19:29 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A4D1BCB6; Wed, 2 Nov 2022 15:19:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C0084B8244D; Wed, 2 Nov 2022 22:19:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F178AC433D6; Wed, 2 Nov 2022 22:19:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667427564; bh=wl6G+UPlJpNzy31t7lvwfXGqECkGZLAEZq/RLczszg8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OMrfYWvkiLREA4eLHeW8enn1L+6oAQhmpfQKCHlYHpd/2E8M0l+JpoDsRB8PzUy+M Jyxkw8zZjO+BFoVJluKts6IGjZ6a2LvvKR/9yI7rEui4MAZvFGggmWZUtR7/JmxilX vL1F97n4frjEhejis2q79DU+5/dv65iPF8IupfzC8xs2Ti3fH37ZHm6TakOAClujhx 6JwRml7yt2rFgW43rOkCt+XDvZLRJby1f9YfN6olXA3egDIXbKSZUiZCblrsAYyCJH CnAweYiSYjoE0SOvd8IK1IxDWRQ8fq3CgDxMjzPcTH2gu1RQVJbaLePnZYCp2w9OHh 5Dgw7vuFFIljQ== Date: Wed, 2 Nov 2022 15:19:22 -0700 From: Eric Biggers To: Guillermo Rodriguez Garcia Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig , Al Viro , Linus Torvalds , Luis Chamberlain , Matthew Wilcox , Kees Cook , Iurii Zaikin Subject: Re: fs: layered device driver to write to evdev Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 02, 2022 at 02:14:24PM +0100, Guillermo Rodriguez Garcia wrote: > What is the recommended way to have a layered device driver that can > talk to evdev ? Don't do that. evdev is a userspace interface, not something for internal kernel use. Just write userspace code that uses evdev to do what you want. Or if it's really necessary, add features to the real device driver. - Eric