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 0C16DC00140 for ; Mon, 8 Aug 2022 06:10:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231214AbiHHGKa (ORCPT ); Mon, 8 Aug 2022 02:10:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbiHHGK2 (ORCPT ); Mon, 8 Aug 2022 02:10:28 -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 59443269 for ; Sun, 7 Aug 2022 23:10: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 11FD5B80B2B for ; Mon, 8 Aug 2022 06:10:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26816C433D6; Mon, 8 Aug 2022 06:10:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1659939024; bh=prPU/aopyKRDsjHYcvgmv2DD/iUz2d5q+aQvdBeZFmw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=j6yOW3vSmcgY0li+94Vw7hwRwSFYrKaQZHDMhOHQoLLhvGYREdNomx1gCQtq/k9j5 /BMqfkZQB3D5+oJn4EGP472gEWdur/GA4jGhDKdNZuCVBBJ5OZ2oebtRThSDUgjywo mJK/MFoKdkk3VE9TbaxBGiCP+CpIZDTargFrQyJ4= Date: Mon, 8 Aug 2022 08:10:22 +0200 From: Greg Kroah-Hartman To: Oded Gabbay Cc: Jason Gunthorpe , Dave Airlie , dri-devel , Yuji Ishikawa , Jiho Chu , Arnd Bergmann , "Linux-Kernel@Vger. Kernel. Org" Subject: Re: New subsystem for acceleration devices Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 07, 2022 at 02:25:33PM +0300, Oded Gabbay wrote: > 2. Common code to handle drivers that want to allow a single user at a > time to run open the device char file. Note, that's an impossible request, and one that the kernel should never worry about, so don't even try it. Think about userspace doing an call to dup() on an open char file descriptor and then passing that off somewhere else. thanks, greg k-h