calc_chunk_count(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… calc_chunk_count(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual, section 9 β€” this page is literally all about calc_chunk_count, and it’s giving β€œtiny helper with one job.” ✨


🌸 NAME 🌸

calc_chunk_count β€” calculates the number chunks to be filled in the Chunks[] array of struct copychunk_ioctl. no cap, that’s the whole gig. πŸ’–

πŸ¦‹ SYNOPSIS πŸ¦‹

u32 calc_chunk_count (struct cifs_tcon *tcon , u64 bytes_left , u32
       chunk_size );

πŸŽ€ ARGUMENTS πŸŽ€

  • tcon β€” destination file tcon. that’s the file we’re copying into, bestie.
  • bytes_left β€” how many bytes are left to copy. the countdown, basically. ⏳
  • chunk_size β€” maximum size of a single chunk. big chunk energy, but capped. πŸ“

πŸ‘‘ RETURN πŸ‘‘

maximum number of chunks with which Chunks[] can be filled. that’s the u32 you get back, and it’s exactly what it sounds like. πŸ’…

🌈 SEE ALSO 🌈


mwah πŸ’‹ β€” source/version: ./fs/smb/client, dated October 2026, and yes this page is calc_chunk_count(9). 🫢

πŸ“¦ where this page comes from