Re: efficient driver/driver communication
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=7l/kTcrwpQvF1e1OuWYrh+x87Reo3W8v6v4MmxgWYgE=; b=xLzvKoa9gM7Hv33hDtoklxLRhehwPYOtwiwSBanEc2j75M5cyMPkq2pYtdPQpxBGtK KXjNiHrXG6rrEX8P0vpc6rEjX7RBa80DT3HdxfSNUmcSG+UBJJOild3Me652QyS322d3 lbx54A09U0qCsKe6L1IZvSWPC0TZBNn1aMUcI= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=lrCr7/dZI6xhRMbVCGlNU6NaQY4Hog4/3V4st/ixNIpy23x+hI60zFlL0ZQAkSFvKx xojFCi4zeTX3DttJYpv7XTNkgUeR/10SkEdKMuPAnF0gpev5s5dsX4NEJe40b6rU5OJG cDR8o91z+EL0d2CuWEAGm4tEDTHT5QCaTHlvw= Yes, these are both IOKit drivers. Both drivers are mine and I can share headers. The KEXTs would be separate binaries. I assume it still safe to pass pointers around in this case, but what is the "fastest" way to do pass the pointers around? Laz. On Sun, Jul 20, 2008 at 4:01 PM, Godfrey van der Linden <gvdl@mac.com> wrote:
You are going to have to give us more context!
What is the driver environment you are running in? I assume IOKit. Are both drivers yours? Do you have a provider/client connection? Can you include headers between the two kexts? Do they live in the same binary? What is the memory going to be used for?
The message/messageClient code is mainly used to call a subroutine in client driver from a provider. Finally within the kernel every thing lives in the same address space so you don't have to copy data you can just pass pointers.
Godfrey
On 2008-07-19, at 4:53 , Larry Emdur wrote:
What is the most efficient way of moving data between two kexts? Are the IOService message/messageClient calls the recommended way to do this? Do they involve memcpy?
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Larry Emdur