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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 50698C433FE for ; Thu, 3 Nov 2022 00:04:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230477AbiKCAEQ (ORCPT ); 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 Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@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