STRUCT SAMSUNG_AES_VARIANT(9)
π struct samsung_aes_variant(9) β like, the Kernel API Manual entry, bestie π
okay so this is the man page for struct samsung_aes_variant, and it lives in the Kernel API Manual, and honestly? it's giving "small struct, big responsibilities" energy. let's get into it β¨
πΈ NAME πΈ
struct samsung_aes_variant β the platform specific SSS driver data. no cap, that's literally what it is. it's the little info packet that tells the SSS driver how your specific platform is built. π«Ά
β¨ SYNOPSIS β¨
here's the whole shape of her, verbatim, do not touch:
struct samsung_aes_variant {
unsigned int aes_offset;
unsigned int hash_offset;
const char *clk_names[2];
};
like. look at her. three members. absolutely iconic minimalism. π
π¦ Members π¦
aes_offsetβ the AES register offset, measured from the SSS module's base. that's it, that's the vibe. πhash_offsetβ the HASH register offset, also measured from the SSS module's base. same energy, different register. πclk_namesβ the names of the clocks you need to actually run the SSS IP. yes plural, yes it's an array of2, and yes she's aconst char *array so don't go mutating those names bestie. β°
π Description π
so this whole struct specifies the platform specific configuration of the SSS module. think of it as the "here's how this board does things" cheat sheet that the driver carries around with it. literally platform data, periodt. ποΈ
π₯ Note π₯
a structure for driver specific platform data is used for future expansion of its usage. so yeah β it exists to be grown into later. don't come for her for being small, she's scalable. π
π SEE ALSO π
the Kernel file ./drivers/crypto/s5p-sss.c and honestly a whole friend group of structs and functions β go say hi:
struct s5p_aes_dev(9)struct s5p_hash_reqctx(9)struct s5p_hash_ctx(9)s5p_set_dma_hashdata(9)s5p_hash_rx(9)s5p_hash_read_msg(9)s5p_hash_write_ctx_iv(9)s5p_hash_write_iv(9)s5p_hash_copy_result(9)s5p_hash_dma_flush(9)s5p_hash_dma_enable(9)s5p_hash_irq_disable(9)s5p_hash_irq_enable(9)s5p_hash_set_flow(9)s5p_ahash_dma_init(9)s5p_hash_write_ctrl(9)s5p_hash_xmit_dma(9)s5p_hash_copy_sgs(9)s5p_hash_copy_sg_lists(9)s5p_hash_prepare_sgs(9)s5p_hash_prepare_request(9)s5p_hash_update_dma_stop(9)s5p_hash_finish(9)s5p_hash_finish_req(9)s5p_hash_handle_queue(9)s5p_hash_tasklet_cb(9)s5p_hash_enqueue(9)s5p_hash_update(9)s5p_hash_final(9)s5p_hash_finup(9)s5p_hash_init(9)s5p_hash_digest(9)s5p_hash_cra_init_alg(9)s5p_hash_cra_init(9)s5p_hash_cra_exit(9)s5p_hash_export(9)s5p_hash_import(9)
like, that's a lot of friends. she's connected. iykyk ππ
okay that's the whole page bestie, and here's the cute little sign-off β this one's filed under ./drivers/crypto, dated October 2026 (yes, future vibes β¨), and it's the struct samsung_aes_variant(9) page, forever and always. mwah ππ
π¦ 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