Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

question about IOConnectMapMemory



Hi,

I am copying data back and forth from user space to a driver, at the rate of about 750 Kbytes per second.
So I set up a shared buffer using IOConnectMapMemory for the user space app, and the shared buffer is
created in the driver.


At the end of the shared buffer I leave a little room for various flags and status indicators as a means of communication
between the app and the driver (about 20 bytes).
Is this a good way to communicate? Or does each read or write into the shared flags at the end of the buffer require
memory paging, and is therefore an inefficient means of communication?


Thanks,
Tommy Schell

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-drivers mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-drivers/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.