set_bytes_swap(9)
π set_bytes_swap(9) β a Kernel API Manual moment
okay so bestie, welcome to set_bytes_swap π we're in the Kernel API Manual today (yes, the manual section 9 one, the kernel-internals girlies know) and this little function is genuinely iconic. it does exactly one thing and it does it slayfully. no cap.
β¨ NAME β¨
set_bytes_swap β Set byte order of all setup-finalize descriptors. π that's it. that's the whole gig. she's a one-job queen and she executes.
πΈ SYNOPSIS πΈ
void set_bytes_swap (struct cc_hw_desc *pdesc , bool config );
like, look at her. void return β she doesn't return anything, she doesn't need to, she just does π¦
π ARGUMENTS π
pdescβ Pointer to HW descriptor struct. it's the hardware descriptor struct pointer, bestie, that's the thing you're handing her π«configβ True to enable byte swapping. so like, pass true and the bytes get swapped, periodt π₯ pass false andβ¦ you know. no swap. the vibe check is in your hands.
π«Ά SEE ALSO π«Ά
okay this is the part where she name-drops her whole friend group and honestly the squad is huge, so buckle up π iykyk:
The kernel file lives at ./drivers/crypto/ccree/cc_hw_queue_defs.h π and it's giving main character energy for the following besties:
hw_desc_init(9)set_queue_last_ind_bit(9)set_din_type(9)set_din_no_dma(9)set_cpp_crypto_key(9)set_din_sram(9)set_din_const(9)set_din_not_last_indication(9)set_dout_type(9)set_dout_dlli(9)set_dout_mlli(9)set_dout_no_dma(9)set_xor_val(9)set_xor_active(9)set_aes_not_hash_mode(9)set_aes_xor_crypto_key(9)set_dout_sram(9)set_xex_data_unit_size(9)set_multi2_num_rounds(9)set_flow_mode(9)set_cipher_mode(9)set_hash_cipher_mode(9)set_cipher_config0(9)set_cipher_config1(9)set_hw_crypto_key(9)set_cmac_size0_mode(9)set_key_size(9)set_key_size_aes(9)set_key_size_des(9)set_setup_mode(9)set_cipher_do(9)
thirty-one entries, not one skipped, we respect the whole roster ππ
π reminder bestie: every one of those is written exactly as it appears in the manual, so copy-paste responsibly and don't come for me if you typo a (9).
aaaand that's the page! π sourced from ./drivers/crypto/ccree, dated October 2026, and yes she signs her name at the bottom because she's that girl: set_bytes_swap(9) πβ¨ mwah, go swap some bytes responsibly π«Άπ
π¦ 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