xor_gen(9)
π
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_cntmust be non-zero.- the memory pointed to by
destand each member ofsrcsmust be at least 64-byte aligned. bytesmust 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 π₯
- Kernel file
./lib/raid/xor/xor-core.c+xor_register(9),xor_force(9)β the whole squad π
π source/version: ./lib/raid/xor Β· date: October 2026 Β· title: xor_gen(9) β and thatβs the whole page, bestie π
π¦ 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