Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 May 2002 17:31:46 +0530
From:      shubhamr <shubhamr@malkauns.nsc.com>
To:        "questions@FreeBSD.ORG" <questions@freebsd.org>
Subject:   mbuf doubt - please help urgent.
Message-ID:  <3CDA652A.930BB5BF@malkauns.nsc.com>

next in thread | raw e-mail | index | archive | help
Hi ,
I see in one of the sample drivers for the NIC that for
transmission,"mtod" and "vtophys" has been used.

But why have not they considered the case if mbuf data resides in
various chunks in physical memory,mtod will no more help for the sake of
DMAing?
Or is it that whenever the higer layers give data to be transferred , it
will be guarentted that they reside contiguous?Also I read somewhere
that mtod functions work only when the data is embedded into the
structure and not externally in mbuf clusters?

Please reply.
Thanks a lot in advance,
shubha



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3CDA652A.930BB5BF>