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)
Mon, Nov 18, 6:05 AM
Unknown Object (File)
Tue, Oct 29, 3:49 AM
Unknown Object (File)
Oct 7 2024, 4:37 PM
Unknown Object (File)
Oct 4 2024, 8:54 PM
Unknown Object (File)
Oct 4 2024, 7:38 PM
Unknown Object (File)
Oct 4 2024, 5:06 PM
Unknown Object (File)
Oct 3 2024, 7:16 PM
Unknown Object (File)
Oct 3 2024, 6:38 PM

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.