All of lore.kernel.org
 help / color / mirror / Atom feed
* sendfile(2) use with a char driver
@ 2022-11-29 21:15 hinxx
  2022-11-30  7:05 ` Greg KH
  0 siblings, 1 reply; 6+ messages in thread
From: hinxx @ 2022-11-29 21:15 UTC (permalink / raw)
  To: stable@vger.kernel.org

I'm looking to use a sendfile(2) with a Xilinx XDMA kernel driver in order to move data from a PCIe board with Xilinx FPGA to the network card with "zero-copy".

Currently I'm getting EINVAL return status from sendfile(2) when providing opened XDMA device file descriptor as input fd.

The device driver provides a character device that can be mmap'ed.

There seem to be other restrictions. Can anyone provide insight on what would be needed to make this work?

Thanks! //hinko

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-12-01 12:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-29 21:15 sendfile(2) use with a char driver hinxx
2022-11-30  7:05 ` Greg KH
2022-11-30  8:23   ` hinxx
2022-11-30 10:48     ` Greg KH
2022-12-01  9:08       ` hinxx
2022-12-01 12:23         ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.