STRUCT OPTEE_RNG_PRIVATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 a u32, it's the session's whole ID, it's iconic πŸ”₯
  • data_rate β€” the RNG data rate. u32 again. 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