2

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

Anton
  • 39
  • 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
  • 84,049
  • 23
  • 157
  • 201
5

In the Linux Cross Reference

gnobal
  • 18,309
  • 4
  • 30
  • 35