Mailing Lists: Apple Mailing Lists

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

Re: IOUserClient size limit?




On Nov 10, 2008, at 2:05 PM, Duane Murphy wrote:

I am seeing a kIOReturnIPCError form an IOUserClient down call (i.e.
from my app into the kernel) when I have a structure that is over 4K
(4096) bytes in size.

Is this a hard limit? Can I change this limit? I have some I/O through
the user client that I would like to take a larger buffer (16K).

Thanks for any tips,

...Duane

Yeah, I believe the recommended path to take for passing larger amounts of data between user-space and the kernel is to use a shared buffer that is memory mapped in both the kernel and user-space. And sorry, but offhand I don't know the API to do this.


I believe there is sample code for doing this, and if there isn't, I would then check Apple's open-source Darwin driver's.

Eli

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

This email sent to email@hidden
References: 
 >IOUserClient size limit? (From: "Duane Murphy" <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.