2

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

Anton
  • 49
  • 2
  • 4

2 Answers2

8

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.

thkala
  • 80,583
  • 22
  • 150
  • 196
5

In the Linux Cross Reference

gnobal
  • 18,103
  • 4
  • 29
  • 35