crypto_engine_alloc_init(9)
π 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:
crypto_finalize_request(9)crypto_pump_requests(9)crypto_transfer_request(9)crypto_transfer_request_to_engine(9)crypto_transfer_aead_request_to_engine(9)crypto_transfer_akcipher_request_to_engine(9)crypto_transfer_hash_request_to_engine(9)crypto_transfer_kpp_request_to_engine(9)crypto_transfer_skcipher_request_to_engine(9)crypto_finalize_aead_request(9)crypto_finalize_akcipher_request(9)crypto_finalize_hash_request(9)crypto_finalize_kpp_request(9)crypto_finalize_skcipher_request(9)crypto_engine_start(9)crypto_engine_stop(9)crypto_engine_alloc_init_and_set(9)crypto_engine_exit(9)
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
- 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