swap_bytes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

swap_bytes(9) πŸ’…

okay so this is a Kernel API Manual page, and the main character is swap_bytes(9) β€” no cap, it's giving kernel-API bestie energy 🫢


✨ NAME ✨

swap_bytes β€” swap two elements a byte at a time πŸŽ€

πŸ“œ SYNOPSIS πŸ“œ

the signature is literally this:

void swap_bytes (void *a , void *b , size_t n );

πŸŽ€ ARGUMENTS πŸŽ€

  • a β€” pointer to the first element to swap πŸ’–
  • b β€” pointer to the second element to swap ✨
  • n β€” element size πŸŽ€

πŸ’… DESCRIPTION πŸ’…

okay so this is the fallback if alignment doesn't allow using larger chunks β€” that's the whole tea, periodt πŸ’…

πŸ‘‘ SEE ALSO πŸ‘‘

the group chat aka SEE ALSO: Kernel file ./lib/sort.c; is_aligned(9); swap_words_32(9); swap_words_64(9); parent(9); sort_r(9); sort_r_nonatomic(9) πŸ¦‹

β€” that's the page, bestie: from ./lib, dated October 2026, and it's swap_bytes(9) at the very end 🫢✨

πŸ“¦ where this page comes from