Linux发送文件源

发布于 2024-10-08 11:58:23 字数 49 浏览 0 评论 0原文

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

Where I can get sendfile function sources?
I can't find it in kernel sources...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

岛歌少女 2024-10-15 11:58:23

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

sendfile() 实现本身位于 fs/read_write.c

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文