Document bus_dmamap_load_mbuf_sg()
This commit is contained in:
parent
2f69affe36
commit
824f4edf4f
@ -71,6 +71,7 @@
|
||||
.Nm bus_dmamap_destroy ,
|
||||
.Nm bus_dmamap_load ,
|
||||
.Nm bus_dmamap_load_mbuf ,
|
||||
.Nm bus_dmamap_load_mbuf_sg ,
|
||||
.Nm bus_dmamap_load_uio ,
|
||||
.Nm bus_dmamap_unload ,
|
||||
.Nm bus_dmamap_sync ,
|
||||
@ -100,6 +101,9 @@
|
||||
"struct mbuf *mbuf" "bus_dmamap_callback2_t *callback" "void *callback_arg" \
|
||||
"int flags"
|
||||
.Ft int
|
||||
.Fn bus_dmamap_load_mbuf_sg "bus_dma_tag_t dmat" "bus_dmamap_t map" \
|
||||
"struct mbuf *mbuf" "bus_dma_segment_t *segs" "int *nsegs" "int flags"
|
||||
.Ft int
|
||||
.Fn bus_dmamap_load_uio "bus_dma_tag_t dmat" "bus_dmamap_t map" \
|
||||
"struct uio *uio" "bus_dmamap_callback2_t *callback" "void *callback_arg" \
|
||||
"int flags"
|
||||
@ -556,6 +560,19 @@ Returns
|
||||
.Er EINVAL
|
||||
if the size of the mbuf chain exceeds the maximum limit of the
|
||||
DMA tag.
|
||||
.It Fn bus_dmamap_load_mbuf_sg "dmat" "map" "mbuf" "segs" "nsegs" "flags"
|
||||
This is just like
|
||||
.Fn bus_dmamap_load_mbuf
|
||||
except that it returns immediately without calling a callback function. It is
|
||||
provided for efficiency.
|
||||
The scatter/gather segment array
|
||||
.Va segs
|
||||
is provided by the caller and filled in directly by the function.
|
||||
The
|
||||
.Va nsegs
|
||||
argument is returned with the number of segments filled in.
|
||||
Returns the same errors as
|
||||
.Fn bus_dmamap_load_mbuf .
|
||||
.It Fn bus_dmamap_load_uio "dmat" "map" "uio" "callback2" "callback_arg" "flags"
|
||||
This is a variation of
|
||||
.Fn bus_dmamap_load
|
||||
|
Loading…
Reference in New Issue
Block a user