drivers: entropy: Add thread safeness note

Add a note in entropy_get_entropy about thread safeness,
since this is used by the random subsystem in its CSPRNG.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2023-09-21 22:33:34 -07:00 committed by Maureen Helm
commit 8be60b40b6

View file

@ -33,6 +33,9 @@ extern "C" {
* @typedef entropy_get_entropy_t
* @brief Callback API to get entropy.
*
* @note This call has to be thread safe to satisfy requirements
* of the random subsystem.
*
* See entropy_get_entropy() for argument description
*/
typedef int (*entropy_get_entropy_t)(const struct device *dev,