Page MenuHomeFreeBSD

bus_dma: Deduplicate locking helper functions.
ClosedPublic

Authored by jhb on Dec 30 2021, 12:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 11 2025, 8:04 PM
Unknown Object (File)
Sep 5 2025, 2:52 PM
Unknown Object (File)
Aug 27 2025, 12:28 AM
Unknown Object (File)
Aug 26 2025, 7:17 PM
Unknown Object (File)
Aug 15 2025, 2:22 AM
Unknown Object (File)
Aug 9 2025, 2:38 AM
Unknown Object (File)
Aug 3 2025, 5:32 PM
Unknown Object (File)
Jul 29 2025, 3:34 AM

Details

Summary
  • Move busdma_lock_mutex to subr_bus_dma.c.
  • Move _busdma_lock_dflt to subr_bus_dma.c. This function was named a couple of different things previously. It is not a public API but an internal helper used in place of a NULL pointer. The prototype is in <sys/bus_dma.h> as not all backends include <sys/bus_dma_internal.h>.

Sponsored by: Netflix

Diff Detail

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

Event Timeline

jhb requested review of this revision.Dec 30 2021, 12:40 AM
kib added inline comments.
sys/sys/bus_dma.h
157

I think this blank line is extra.

This revision is now accepted and ready to land.Jan 1 2022, 1:40 AM
jhb marked an inline comment as done.Jan 4 2022, 10:52 PM
This revision was automatically updated to reflect the committed changes.