crypto_engin...init_and_set(9)
π crypto_engine_alloc_init_and_set(9) β the Kernel API Manual glow-up β¨
okay so bestie, this one's from the Kernel API Manual and it's literally the moment your crypto hardware engine gets its whole life together. the function is crypto_engine_alloc_init_and_set β she's a long name but she ate π
β¨ NAME β¨
crypto_engine_alloc_init_and_set β allocate crypto hardware engine structure and initialize it by setting the maximum number of entries in the software crypto-engine queue.
like, she's the full package: she allocates the struct and sets the queue length. icon behavior, no cap π
π¦ SYNOPSIS π¦
struct crypto_engine * crypto_engine_alloc_init_and_set (struct device
*dev , bool retry_support , bool rt , int qlen );
πΈ ARGUMENTS πΈ
devβ the device attached with one hardware engine. one engine per device, we're monogamous here πretry_supportβ whether hardware has support for retry mechanism. it's abool, so literally yes/no, so real, so simplertβ whether this queue is set to run as a realtime task. main character energy only, no being late πββοΈπ¨qlenβ maximum size of the crypto-engine queue. anint, so pick your number wisely bestie π
π DESCRIPTION π
This must be called from context that can sleep. π΄
ngl that's the whole description β but it's important! can-sleep context, not atomic context. she naps, she's allowed. don't call her somewhere she can't and then act surprised π
π₯ RETURN π₯
the crypto engine structure on success, else NULL. π«Ά
so like, check it. if you get NULL she didn't slay that day, and you gotta handle it.
π SEE ALSO π
the whole group chat, fr fr:
- Kernel file
./crypto/crypto_engine.c 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(9)crypto_engine_exit(9)
mwah π that's the page. sourced from ./crypto, dated October 2026, and titled crypto_engin...init_and_set(9) because even manpage titles gotta truncate sometimes π she's doing her best, and her best is iconic. bye bestie, go init that engine π§ββοΈπ
π¦ 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