STRUCT OPTEE_RNG_PRIVATE(9)
π struct optee_rng_private(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β this is literally the page for struct optee_rng_private, no cap. it's the OP-TEE Random Number Generator private data struct, and honestly? she's giving backstage-pass energy π
πΈ NAME πΈ
struct optee_rng_private β OP-TEE Random Number Generator private data π²π
like, the lil' bundle of secrets the OP-TEE RNG keeps to itself. icon behavior.
β¨ SYNOPSIS β¨
struct optee_rng_private {
struct device *dev;
struct tee_context *ctx;
u32 session_id;
u32 data_rate;
struct tee_shm *entropy_shm_pool;
struct hwrng optee_rng;
};
that's the whole struct, copied exactly, not one character out of place π«Ά read it, love it, respect it.
π¦ Members π¦
devβ the OP-TEE based RNG device. it's the device, she's THE device πββοΈctxβ the OP-TEE context handler. handles the context, as handlers do πsession_idβ the RNG TA session identifier. it's au32, it's the session's whole ID, it's iconic π₯data_rateβ the RNG data rate.u32again. that's the rate at which the data does its data thing πentropy_shm_poolβ the memory pool shared with the RNG device. shared! with the device! teamwork makes the dream work π«Άβ¨optee_rngβ the OP-TEE RNG driver structure. the driver structure, for the RNG, from OP-TEE. we love a self-explanatory name π
π SEE ALSO π
- Kernel file
./drivers/char/hw_random/optee-rng.cβ go read the source bestie, it's right there ππ
lowkey a reminder: every member above is listed exactly as the kernel headers list them, so if you're writing code against this, don't get creative with the field names, fr fr π
and that's the whole page!! πΈ source: ./drivers/char/hw_random β dated October 2026 β so like, future-dated and still serving looks π
π¦ mwah, go forth and generate your entropy πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms