Re: How to retrieve buffer from struct uio ?
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com 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. = Mike _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Michael Smith