问题
Where I can get sendfile function sources? I can't find it in kernel sources...
回答1:
In the Linux Cross Reference
回答2:
Since linux-2.6.23 sendfile()
is implemented using the more generic splice()
framework. You will find the splice()
implementation in fs/splice.c under your kernel source tree.
The sendfile()
implementation itself is in fs/read_write.c.
来源:https://stackoverflow.com/questions/4483311/linux-sendfile-source