skcipher_walk_done(9)
π skcipher_walk_done(9) β from the Kernel API Manual, bestie β¨
okay so real talk, this one lives in the Kernel API Manual and it's lowkey the little cleanup icon of the crypto walk world. say hi to skcipher_walk_done π«Ά
β¨ NAME β¨
skcipher_walk_done β the function that finishes one step of a skcipher_walk. that's it, that's the vibe check π
πΈ SYNOPSIS πΈ
int skcipher_walk_done (struct skcipher_walk *walk , int res );
periodt. that's the whole signature, no cap π
π¦ ARGUMENTS π¦
walkβ theskcipher_walkitself. the main character of this whole situation πresβ the number of bytes *not* processed (>= 0), taken fromwalk->nbytes. or you can hand it a-errnovalue to terminate the walk because something went wrong π
π DESCRIPTION π
so basically this function cleans up after one step of walking through the source and destination scatterlists, and then advances to the next step if applicable. it's giving "tidy up and keep it moving" energy β¨
here's the tea on what it sets, fr fr:
walk->nbytesgets set to the number of bytes available in the next stepwalk->totalgets set to the new total number of bytes remainingwalk->{src,dst}.virt.addrgets set to the next pair of data pointers
and if there's no more data? or if an error occurred (i.e. a -errno return)? then walk->nbytes and walk->total are both set to 0, and all the resources owned by the skcipher_walk are freed. like, fully released. goodbye, slay, resources freed π§π
β RETURN β
0 or a -errno value. and heads up bestie: if res was a -errno value then it will be returned β but other errors may occur too π so don't assume it's always gonna be the exact same error you fed in.
π SEE ALSO π
- Kernel file
./crypto/skcipher.c skcipher_alloc_instance_simple(9)
iykyk π₯
and that's the whole page, bestie π source is ./crypto, version date is October 2026, and this absolute icon is filed under skcipher_walk_done(9) β go forth and clean up your walks ππβ¨
π¦ 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