skcipher_walk_done(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the skcipher_walk itself. the main character of this whole situation πŸ‘‘
  • res β€” the number of bytes *not* processed (>= 0), taken from walk->nbytes. or you can hand it a -errno value 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->nbytes gets set to the number of bytes available in the next step
  • walk->total gets set to the new total number of bytes remaining
  • walk->{src,dst}.virt.addr gets 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 🌈

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