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)
Thu, Nov 6, 6:17 PM
Unknown Object (File)
Thu, Nov 6, 1:59 AM
Unknown Object (File)
Fri, Oct 31, 12:59 PM
Unknown Object (File)
Oct 21 2025, 5:54 PM
Unknown Object (File)
Oct 20 2025, 2:50 PM
Unknown Object (File)
Oct 20 2025, 2:50 PM
Unknown Object (File)
Oct 20 2025, 2:50 PM
Unknown Object (File)
Oct 20 2025, 1:04 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.