Linux sendfile源码

Ant*_*ton 2 linux sendfile

哪里可以获得sendfile函数源?我在内核源代码中找不到它......

thk*_*ala 8

因为linux-2.6.23 sendfile()是使用更通用的splice()框架实现的.您将在内核源代码树下的fs/splice.c中找到splice()实现.

sendfile()实现本身是在FS/read_write.c.