Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp734396rwi; Wed, 2 Nov 2022 18:00:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6dOxBL4qt9FzPS9LH3p7lhQA0pIV5uh0pUHYYVdOQ1ivMziKTXrfoWZhxDoCuYBsYQ2BHl X-Received: by 2002:a05:6402:1553:b0:461:539d:9b88 with SMTP id p19-20020a056402155300b00461539d9b88mr26789694edx.286.1667437221494; Wed, 02 Nov 2022 18:00:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667437221; cv=none; d=google.com; s=arc-20160816; b=oQnZn53FqSKJIfwOKcaAJNIHgi+mtok/A+JIBjQqehEYHIbUPS+Qm8N1CsWJ3mAc6Y pyVEfoIHWY8ZUTHdglGbSt/5rpO16Nyr4Yn1/ABJt6u8u1TGLzMM1H/yN9uGX4XItqCQ Adl3+l5uOHYlUJkGo1euxKAA7F3ZP8HZWOdL/vh66cZS2OkdA/5Ll+eitSrHXj2tLLQN woiECFA8143Rbs6Z5MMklvX4D0V8G8yWI3YujK9vyJ9R0BrbVnT0MbQi6XwTc8M8KFbn i7Zv+jKyWGTvOCjO5Glpme+Y8sI/Z8ECKDCJKZ2hNYTZ7sTo+qeh5uxDn/vQ686HJcTS Mhlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=laEgCvWeF14HgMGYzXP7ifDEMuDZ19cGQjHseb3yC3A=; b=ZMNKbaKfiynX4EFBDUowPJ7g84MDIVySWsQ1QYEQu2OLS3e853BXXpECzoyzldahoN od31FwJhmwZnNVqls+ZqFLvD4MHEwbe3B32K9QYyrmarUL0LbQYURgVzmUt8YY9DgVnq EzbJhRnft+WtyBS0j4/K0cI4fdXB3/K02d5DSLfQDQj98Ut0rz2KGGhRknHI2uYW4FXH dWw51sJ2xYCPhKFFhvZZgbWI8Ys1nnw4vQJLnrFjiZyBtGRrXZA0agxziruGesxBTbOb +7Uv2Vt9k5SBRNWh5aMWGM65C1Z/U8HM+K9dMk/WSoSNElwSbpyByWIlQtjfXM1EMJLx hM3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=W+ebfc+8; 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 dm20-20020a170907949400b00779a3220c5asi19290836ejc.343.2022.11.02.17.59.57; Wed, 02 Nov 2022 18:00:21 -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=@infradead.org header.s=bombadil.20210309 header.b=W+ebfc+8; 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 S230481AbiKCAEQ (ORCPT + 97 others); Wed, 2 Nov 2022 20:04:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230046AbiKCAEO (ORCPT ); Wed, 2 Nov 2022 20:04:14 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AD972678; Wed, 2 Nov 2022 17:04:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=laEgCvWeF14HgMGYzXP7ifDEMuDZ19cGQjHseb3yC3A=; b=W+ebfc+8XwqXpdnDAUHllfBvJx iBwlGDmLmXCfPZcUX+rGDYI5o/ypW3sw6Wf64LvJZLcLmx6R0wbMFQDFW7NuLifTQVzfw9t8w9n9P jitQ+vzxjf9BX7V1PpjQaGXWeiZpaS71pguxgbzhDjl0t6ZuJY6LEH3kX7UJm0NG9E/zbzmRJHYCy R03l3UO1Qzm7CmUpEQSSbg7I2lRYL74trSCwLEpcVnYWfCgShnrN1GV4DXwhBDI7s47W3lc/QisAQ pPNS7FtIuIiCGQmoQAe5jcAdoKIyY8dIuncqAGjdGzEnBkg3xGvjpHF0etxZfNPcSPT4GtCpvyIJG 8H6Cl3ZA==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqNiN-00FGOU-VU; Thu, 03 Nov 2022 00:04:11 +0000 Date: Wed, 2 Nov 2022 17:04:11 -0700 From: Luis Chamberlain To: Guillermo Rodriguez Garcia Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig , Al Viro , Linus Torvalds , 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: Sender: Luis Chamberlain X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE 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: > I understand that device drivers should implement ->write_iter if they > need to be written from kernel space, but evdev does not support this. > What is the recommended way to have a layered device driver that can > talk to evdev ? Shouldn't just writing write_iter support make this work? Luis