Why is there no bus_dmamap_load_sg()?

Lakhan Shiva lakhanshiva at gmail.com
Sat May 26 13:38:22 UTC 2018


Hi,

I think nobody wanted this before. As you have the need for it in your
project you should go ahead and create the service.
Again, I am not 100% sure, correct me if i am wrong.

Thanks,
Lakhan

On Sat, May 26, 2018 at 2:41 PM Pratyush Yadav <pratyush at freebsd.org> wrote:

> Hi all,
>
> I am working on Xen this summer [0], and I have to use the bus_dma(9)
> interface extensively during the course of the project.
>
> I was looking at the man page and I notice the function
> bus_dmamap_load_mbuf_sg() which directly returns the segment array to
> the client. But a similar variant of bus_dmamap_load() is missing.
> This variant would be useful to me and help me in my work.
>
> Is there a reason the sg variant was only implemented for mbufs?
>
> I was looking at the code in sys/kern/subr_bus_dma.c and a
> bus_dmamap_load_sg() does not look too difficult to implement. Is it
> ok if I submit a patch implementing it?
>
> --
> Regards,
> Pratyush Yadav
>
>
> [0]
> https://wiki.freebsd.org/SummerOfCode2018Projects/ImportXenbus_dmaFromOpenBSD
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
>


More information about the freebsd-hackers mailing list