Page MenuHomeFreeBSD

linuxkpi: add dma_sync_sg_for_{cpu, device}
AcceptedPublic

Authored by zishun.yi.dev_gmail.com on Jun 23 2026, 8:49 AM.
Referenced Files
F170661092: D57766.diff
Sat, Sep 5, 9:16 PM
F170462471: D57766.id180358.diff
Fri, Sep 4, 10:51 PM
Unknown Object (File)
Fri, Sep 4, 3:46 PM
Unknown Object (File)
Thu, Sep 3, 9:53 PM
Unknown Object (File)
Thu, Sep 3, 6:00 PM
Unknown Object (File)
Wed, Sep 2, 4:27 PM
Unknown Object (File)
Tue, Sep 1, 10:13 PM
Unknown Object (File)
Tue, Sep 1, 10:02 PM
Subscribers

Details

Reviewers
bz
Group Reviewers
linuxkpi
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