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
F172709450: D57766.diff
Sun, Sep 20, 10:47 AM
F172667789: D57766.id185918.diff
Sun, Sep 20, 2:06 AM
Unknown Object (File)
Wed, Sep 16, 7:42 AM
Unknown Object (File)
Sun, Sep 13, 3:01 AM
Unknown Object (File)
Sat, Sep 12, 1:58 AM
Unknown Object (File)
Thu, Sep 10, 12:03 PM
Unknown Object (File)
Thu, Sep 10, 12:25 AM
Unknown Object (File)
Wed, Sep 9, 2:04 PM
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.Sat, Sep 5, 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.Sat, Sep 5, 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.Sat, Sep 5, 8:03 PM