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
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
Unknown Object (File)
Wed, Sep 9, 1:26 PM
Unknown Object (File)
Wed, Sep 9, 5:04 AM
Unknown Object (File)
Tue, Sep 8, 9:11 PM
Unknown Object (File)
Tue, Sep 8, 8:28 PM
Unknown Object (File)
Tue, Sep 8, 7:18 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 74139
Build 71022: arc lint + arc unit

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
1899

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