Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751338AbcCKJuo (ORCPT ); Fri, 11 Mar 2016 04:50:44 -0500 Received: from mga14.intel.com ([192.55.52.115]:56257 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750744AbcCKJuf (ORCPT ); Fri, 11 Mar 2016 04:50:35 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,320,1455004800"; d="scan'208";a="931649148" Date: Fri, 11 Mar 2016 11:50:30 +0200 From: Jarkko Sakkinen To: Stefan Berger Cc: tpmdd-devel@lists.sourceforge.net, jgunthorpe@obsidianresearch.com, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-api@vger.kernel.org Subject: Re: [PATCH v6 08/11] tpm: Driver for supporting multiple emulated TPMs Message-ID: <20160311095030.GA10270@intel.com> References: <1457545170-30120-1-git-send-email-stefanb@linux.vnet.ibm.com> <1457545170-30120-9-git-send-email-stefanb@linux.vnet.ibm.com> <20160310163915.GA4863@intel.com> <56E1AF44.9040807@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56E1AF44.9040807@linux.vnet.ibm.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 560 Lines: 15 On Thu, Mar 10, 2016 at 12:30:44PM -0500, Stefan Berger wrote: > > Some might want to use this in a way that the created virtual device > > is not closed when /dev/vtpmx is closed. > > I don't see that happening. If you want the device pair to stay around after > an application terminates, you have to pass the file descriptor returned > from the ioctl to an application. Right, so it is. So the device pair dissappears either by closing the returned fd (by the ioctl) or when application terminates. No extra ioctls would be needed. > Stefan /Jarkko