Re: How to retrieve buffer from struct uio ?
Re: How to retrieve buffer from struct uio ?
- Subject: Re: How to retrieve buffer from struct uio ?
- From: Michael Smith <email@hidden>
- Date: Tue, 12 Sep 2006 07:32:27 -0700
On Sep 12, 2006, at 2:13 AM, sanjay yaragatti wrote:
I am writing a kernel driver.I have regestered it
as character device. I am unable to implement the
device write method (dev_write( dev_t device, struct
uio *uio, int ioflag)) since I don't know how to
retrieve the buffer from struct uio.
Why do you want to "retrieve the buffer"? Are you planning to DMA
from/to it?
Typically you want to use uiomove() to handle data referenced by a
UIO, since
it knows a lot more about getting data into the kernel than you do.
= Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden