2

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

4

2 回答 2

8

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

sendfile()实现本身在fs /read_write.c中。

于 2010-12-19T14:23:13.960 回答
5

Linux 交叉参考中

于 2010-12-19T14:21:23.790 回答