s5p_hash_rx(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– s5p_hash_rx(9) β€” the kernel API manual, but make it cute πŸ’–

Okay so bestie, welcome to the s5p_hash_rx page from the Kernel API Manual β€” yes, the whole entire manual, and we are here for it. This is the s5p_hash_rx(9) situation and honestly it's giving "small function, big responsibilities." Let's get into it. 🫢


🌸 NAME 🌸

s5p_hash_rx β€” get next hash_sg_iter, periodt. That's the whole vibe. ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

int s5p_hash_rx (struct s5p_aes_dev *dev );

Like, that's it. That's the signature. No cap. πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device. The device! It's the device bestie, that's the argument, that's the whole thing it takes. 🧚

⭐ RETURN ⭐

Okay so the return value is literally doing the most, it's out here with three whole moods:

  • 2 β€” if there is no more data and it is UPDATE op
  • 1 β€” if new receiving (input) data is ready and can be written to device
  • 0 β€” if there is no more data and it is FINAL op

So like, 2 and 0 are both "no more data" but one is UPDATE and one is FINAL, and 1 is the main character energy "we got fresh input, write it to the device" moment. Iconic. πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/crypto/s5p-sss.c, plus the whole squad β€” and I do mean the whole squad, bestie, this list is long and every single one of them slays:

struct samsung_aes_variant(9), struct s5p_aes_dev(9), struct s5p_hash_reqctx(9), struct s5p_hash_ctx(9), s5p_set_dma_hashdata(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).

iykyk. πŸ’€


Lowkey a whole ecosystem of s5p_hash_* functions and like three structs, and you thought this was just one little function? No bestie, it's a family reunion. πŸ™ˆ

And that's the page! Shoutout to ./drivers/crypto β€” that's where this beauty lives β€” documented as of October 2026 in the Kernel API Manual. Go forth and hash_sg_iter responsibly. πŸ“βœ¨πŸ’œ

πŸ“¦ where this page comes from