From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Goldman Subject: TPM 2.0 device driver blocking open Date: Fri, 30 Dec 2016 10:53:26 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tpmdd-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: tpmdd-devel@lists.sourceforge.net It appears that an open() to the TPM doesn't block if another process has /dev/tpm0 open. It returns -1, an error. Questions: Is this expected behavior? Was this also true for 1.2? Is there any way to change it. I didn't set O_NOBLOCK. Is there perhaps an ioctl()? Is this something that should be added? ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot