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
F171213707: D57766.id185918.diff
Wed, Sep 9, 2:04 PM
F171210123: D57766.id185984.diff
Wed, Sep 9, 1:26 PM
F171169300: D57766.id185984.diff
Wed, Sep 9, 5:04 AM
F171126916: D57766.id180358.diff
Tue, Sep 8, 9:11 PM
F171122041: D57766.id185918.diff
Tue, Sep 8, 8:28 PM
F171115104: D57766.diff
Tue, Sep 8, 7:18 PM
Unknown Object (File)
Mon, Sep 7, 10:02 PM
Unknown Object (File)
Sun, Sep 6, 7:00 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 76562
Build 73445: 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