calc_chunk_count(9)
π 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 filetcon. 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 π
- Kernel file
./fs/smb/client/smb2ops.cand__smb2_copychunk_range(9)β go peek at them, iykyk. π₯
mwah π β source/version: ./fs/smb/client, dated October 2026, and yes this page is calc_chunk_count(9). π«Ά
π¦ 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