Page MenuHomeFreeBSD

Add an overview section to bus_dma.9.
ClosedPublic

Authored by jhb on Aug 9 2018, 6:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 31, 12:56 AM
Unknown Object (File)
Nov 15 2024, 5:28 AM
Unknown Object (File)
Nov 13 2024, 4:47 PM
Unknown Object (File)
Nov 6 2024, 10:38 AM
Unknown Object (File)
Nov 3 2024, 11:28 PM
Unknown Object (File)
Nov 3 2024, 5:53 PM
Unknown Object (File)
Oct 20 2024, 5:41 PM
Unknown Object (File)
Oct 19 2024, 11:43 PM
Subscribers

Details

Summary

Describe the role of tags and mapping objects as abstractions.
Describe static vs dynamic transaction types and give a brief overview
of the set of functions and object life cycles used for static vs
dynamic.

While here, fix a few other typos.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 18684
Build 18368: arc lint + arc unit

Event Timeline

Other than an inconsistency in how you're adding newlines after , I like it.

share/man/man9/bus_dma.9
144

why a newline here?

This revision is now accepted and ready to land.Aug 9 2018, 7:19 PM
share/man/man9/bus_dma.9
140

I'd suggest .Vt ( bus_dma_tag_t ) — when ascii can express the same output, it's one less macro for anyone editing or reading the raw doc to have to reference — and AFAICT they render the same.

184

Why not just use parentheses?

229–232

I think this can just use ASCII parens

257

memory region must be bound to the mapping object (or vice versa)?

I'm not a fan of the lines-terminating-at-commas style but it's not an issue.

Thanks for writing this.

share/man/man9/bus_dma.9
144

similar to the "start every sentence on a new line" rule, I was applying the same to clauses. It is probably debatable if "for example" is the same as a clause though. I have a newline after all the subordinate clauses though. I'll add manpages to the review who I missed earlier.

148

Did not here.

153

Did here.

156

Did here.

230

Did here

234

Did here

Hmm, I'll defer to the @wblock or the like on ASCII ()'s. In general I prefer to let the markup pick how it wants to render markup instead of doing the rendering directly (so prefer to use tags than not), but I do think there might be something different there for parentheses.

share/man/man9/bus_dma.9
257

Good catch, I'll fix.

  • s/memory region/mapping object/ in one place
This revision now requires review to proceed.Aug 9 2018, 7:50 PM
  • Use explicit parantheses as this does seem to be the prevailing style.
  • Only use newlines after actual clauses as opposed to simple phrases.
This revision is now accepted and ready to land.Aug 10 2018, 6:57 PM
  • Add an Example.

This might be a bit much (and it ended up being quite a bit long), but
it does give about the smallest example I could think of of using both
static and dynamic mappings in a single driver.

This revision now requires review to proceed.Aug 10 2018, 7:32 PM

Seems kind of long. It's unfortunate we don't really have an existing pattern for manual page examples.

One option that might be too "cute" would be to dump the code in sys/dev/helloworld, annotate in helloworld.4, and refer to that (with slightly more context than just bare .Xr) from this page.

The straightforward thing might be adding a bus_dma_example.9?

This revision was not accepted when it landed; it landed in state Needs Review.Aug 12 2018, 1:54 AM
This revision was automatically updated to reflect the committed changes.

I'll see if maybe there's a good place for the extended example in the developer handbook.