xor_gen(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xor_gen(9) πŸ’… β€” the Kernel API Manual, but make it fashion ✨

okay so bestie, this is the xor_gen(9) glow-up: same facts, same rules, infinitely more group-chat energy. let’s get into it 🫢

🌸 NAME 🌸

xor_gen β€” generate RAID-style XOR information πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

here’s the signature, and yes we’re keeping every space and comma exactly as-is:

void xor_gen (void *dest , void **srcs , unsigned int src_cnt , unsigned
int bytes );

πŸŽ€ ARGUMENTS πŸŽ€

the whole cast, no skips:

  • dest β€” destination vector πŸ’–
  • srcs β€” source vectors ✨
  • src_cnt β€” number of source vectors πŸ”’
  • bytes β€” length in bytes of each vector πŸ“

✨ DESCRIPTION ✨

so what it does: performs the bit-wise XOR operation into dest for each of the src_cnt vectors in srcs, for a length of bytes bytes. iconic behavior, truly. πŸ’…

but okay, the rules are the rules:

  • src_cnt must be non-zero.
  • the memory pointed to by dest and each member of srcs must be at least 64-byte aligned.
  • bytes must be non-zero and a multiple of 512.
bestie, this is not a vibe suggestion β€” those alignment and size conditions are mandatory 😭

πŸ’€ NOTE πŸ’€

for typical RAID uses, dest either needs to be zeroed, or filled with the first disk, which then needs to be removed from srcs. iykyk 🫢

πŸ”₯ SEE ALSO πŸ”₯


πŸ’– source/version: ./lib/raid/xor Β· date: October 2026 Β· title: xor_gen(9) β€” and that’s the whole page, bestie πŸŽ€

πŸ“¦ where this page comes from