Re: [PATCH] TPM: Let the tpm char device be openable multiple times

From: Alan Cox
Date: Tue Nov 03 2009 - 05:42:35 EST


> - Move the user space data buffer and related goop into a
> struct tpm_file, create one struct tpm_file per open file.

Is that really sufficient ?

You can open a file once, dup it (or inherit it and get multiple callers
from the same file handle. Ditto consider threated apps

Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/