I was trying to study flow of sendfile. I understand that sendfile first 
allocate pages and than call block layer to fill these pages with file image. 
After that, protocol related sendpage function is called (if it exist). I am 
interested in TCP IPv4.

My understanding is that same page is passed to TCP layer, and from there data 
is put on the wire. Now for TCP, it will want to keep this pages until it get 
ack from remote end.

Kernel will not attempt to release these pages until ref count on these pages 
goes to zero.

Is all of above correct ? where is TCP code ref count is decremented ? can you 
give code pointer.

Thanks

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to