Hi: thanks for your help :) 2009/10/14 Raz <raziebe@xxxxxxxxx>: > http://linuxgazette.net/issue91/tranter.html > > On Tue, Oct 13, 2009 at 5:48 PM, loody <miloody@xxxxxxxxx> wrote: >> >> Dear all: >> I saw there is a callback function in file_operations, sendfile, and >> it seems user mode can pass file handle to kernel by this function. >> is there any document or example can tell me how to use this function? >> thanks for your kind help, >> miloody Would you please tell me an existing example that implement this function call already? I have grep the keyword 'sendfile' but I only get the result as below: # grep -nw 'sendfile' * ./block/loop.c:448: retval = file->f_op->sendfile(file, &pos, bvec->bv_len, ./block/loop.c:709: /* new backing store needs to support loop (eg sendfile) */ ./block/loop.c:710: if (!inode->i_fop->sendfile) ./block/loop.c:790: if (!file->f_op->sendfile) ./net/sk98lin/skge.c:135:/* use the scatter-gather functionality with sendfile() */ ./scsi/iscsi_tcp.c:825: * iscsi_tcp_data_recv - TCP receive in sendfile fashion ./scsi/iscsi_tcp.c:2021: * Intercept TCP callbacks for sendfile like receive # appreciate your help, miloody -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ