crypto_engine_alloc_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, this is crypto_engine_alloc_init β€” the Kernel API Manual page for it β€” and what it does is literally allocate a crypto hardware engine structure and initialize it. like it builds the thing AND sets it up, one stop. slay.


✨ SYNOPSIS ✨

struct crypto_engine * crypto_engine_alloc_init (struct device *dev ,
       bool rt );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device attached with one hardware engine. like, the hardware bestie this engine belongs to 🫢
  • rt β€” whether this queue is set to run as a realtime task. true = realtime vibes, false = chill vibes.

🌸 DESCRIPTION 🌸

Real talk: this must be called from context that can sleep. no cap, that's the whole rule. do not come at this from an atomic context, it will not end well for you 😭


πŸ¦‹ RETURN πŸ¦‹

On success you get the crypto engine structure β€” iconic, you ate. otherwise you get NULL, and you should probably go think about what happened πŸ’€


🌈 SEE ALSO 🌈

Kernel file ./crypto/crypto_engine.c, plus the whole friend group:


mwah πŸ’‹ this one's from ./crypto, dated October 2026, and it's the crypto_engine_alloc_init(9) page β€” go build something gorgeous with it. periodt. 🧚✨

πŸ“¦ where this page comes from