nand_extract_bits(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nand_extract_bits(9) β€” Kernel API Manual, but make it make sense

okay so bestie, welcome to the Kernel API Manual page for nand_extract_bits, and honestly? she's a tiny little baddie with one job and she does it flawlessly. no notes. let's get into it πŸŽ€


✨ NAME ✨

nand_extract_bits β€” literally copies unaligned bits from one buffer to another one. that's it. that's the whole personality. and yet, iconic. πŸ’–


🌸 SYNOPSIS 🌸

void nand_extract_bits (u8 *dst , unsigned int dst_off , const u8 *src ,
unsigned int src_off , unsigned int nbits );

like look at her. five arguments. zero drama. we stan a signature that fits on two lines. πŸ¦‹


🫢 ARGUMENTS 🫢

  • dst β€” the destination buffer, aka where the bits are going. the glow-up location. ✨
  • dst_off β€” the bit offset at which the writing starts. not byte offset, bestie, bit offset. iykyk. πŸ’…
  • src β€” the source buffer, aka where the bits are coming from. the origin story. πŸ’œ
  • src_off β€” the bit offset at which the reading starts. again. bits. not bytes. do not come for me. πŸ™ˆ
  • nbits β€” number of bits to copy from src to dst. yes, she counts in bits. she's built different. πŸ‘‘

🌈 DESCRIPTION 🌈

so the whole gig is: copy bits from one memory region to another. that's it. that's the function.

and the slay detail? overlap authorized πŸ”₯ β€” meaning the two regions are allowed to overlap and this is fine and legal and not a crime. no cap, it's giving "i got you, don't worry about the buffer boundaries." main character energy honestly. 🌟


πŸ‘‘ SEE ALSO πŸ‘‘

the whole nand cinematic universe, and yes we're listing every single one because nobody gets left out on my watch πŸ’–

Kernel file ./drivers/mtd/nand/raw/nand_base.c, and also:


bestie reminder 🫢 this is a bit-level copy, so dst_off and src_off are measured in bits, and overlapping regions are fully authorized. no cap. go off. πŸ’…

kisses and bye-bye from ./drivers/mtd/nand/raw πŸ’– β€” page stamped October 2026, manual name nand_extract_bits(9), and that's the whole footer babyyyy πŸŽ€βœ¨πŸŒΈ

πŸ“¦ where this page comes from