REPEAT_BYTE(9)
π REPEAT_BYTE(9) β like, the Kernel API Manual page, bestie π
okayyy so welcome to the Kernel API Manual β¨ today we're talking about REPEAT_BYTE, and honestly? she's a little icon. π«Ά
πΈ NAME πΈ
REPEAT_BYTE β repeats the value @x multiple times as an unsigned long value. that's it. that's the whole gig. and she does it flawlessly π
β¨ SYNOPSIS β¨
REPEAT_BYTE (x );
yes the spacing is doing its own thing, don't @ me, it's literally what's written π
π¦ ARGUMENTS π¦
xβ the value you want to repeat. that's the one. the main character of this whole operation π
π NOTE π
okay so this is the important part, bestie, listen up π¨
x is not checked for > 0xff, and larger values produce odd results. like, nobody's running a vibe check on your input here. fr fr. so if you hand it something thicc like 0x1ff, the output gets weird and nobody's stopping you π
not me warning you that this is unchecked β it lowkey is, so pls be careful with your byte-sized assumptions π
π SEE ALSO π
y'all should also go look at these, they're all in the same friend group π§
- Kernel file:
./tools/testing/selftests/powerpc/primitives/linux/wordpart.h upper_32_bits(9)lower_32_bits(9)upper_16_bits(9)lower_16_bits(9)REPEAT_BYTE_U32(9)
and that's the whole page, no cap π
source/version: ./tools/testing/selftests/powe... β October 2026 β mwah, thanks for reading, slay βπ
π¦ 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