| commit | ba0ed67e1a066736d88f08bc99d73b5c40617c46 | [log] [tgz] |
|---|---|---|
| author | Jerome Forissier <jerome.forissier@linaro.org> | Fri Mar 18 10:55:43 2022 +0100 |
| committer | Jérôme Forissier <jerome@forissier.org> | Wed Mar 30 09:32:26 2022 +0200 |
| tree | 7bb3cff71102409901f9958f3e32de7fb5116e31 | |
| parent | 945704e6433e31753fb6c3f05e1ce61673dec1d6 [diff] |
tee-supplicant: rpmb: introduce readn() wrapper to the read() syscall read_cid() obtains the ID of the eMMC device by reading from sysfs with the read() function. Two bytes are read at a time but short reads (i.e., when only one byte is returned) and EINTR are not handled. Although I *think* these situation cannot happen with sysfs, I was unable to find any guarantee that it is the case. Therefore, introduce a readn() function which does exactly that. Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
This git contains source code for the non-secure side implementation of the OP-TEE project making up the client library and tee-supplicant.
All official OP-TEE documentation has moved to http://optee.readthedocs.io. The information that used to be here in this git can be found under optee_client.
// OP-TEE core maintainers