Page MenuHomeFreeBSD

linuxkpi: add dma_sync_sg_for_{cpu, device}
ClosedPublic

Authored by zishun.yi.dev_gmail.com on Jun 23 2026, 8:49 AM.
Referenced Files
F175735332: D57766.diff
Mon, Oct 12, 9:53 PM
Unknown Object (File)
Sun, Oct 11, 7:08 PM
Unknown Object (File)
Sun, Oct 11, 7:08 PM
Unknown Object (File)
Wed, Oct 7, 1:43 PM
Unknown Object (File)
Tue, Oct 6, 9:37 PM
Unknown Object (File)
Mon, Oct 5, 6:36 AM
Unknown Object (File)
Sun, Oct 4, 11:48 AM
Unknown Object (File)
Thu, Oct 1, 8:04 AM
Subscribers

Details

Summary

Add dma_sync_sg_for_{cpu, device} and dma_sync_sgtable_for_{cpu,
device}. These functions are useful for my GSoC 2026 project, udmabuf.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bz requested changes to this revision.Sep 5 2026, 9:09 AM
bz added inline comments.
sys/compat/linuxkpi/common/src/linux_pci.c
2016

I assume this is an internal helper function and not a public Linux KPI (dma_sync_sg()). Then it should be called lkpi_dma_sync_sg()

This revision now requires changes to proceed.Sep 5 2026, 9:09 AM
zishun.yi.dev_gmail.com marked an inline comment as done.

rename to lkpi_dma_sync_sg()

This revision is now accepted and ready to land.Sep 5 2026, 8:03 PM