Re: Memory Restriction in Kext
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=K+TJAdh0QIyJeoNNEngALMd9qefeW5s4z5CV8qqNiDteVSZS07qpc+5ldm77UulbmhQfi9fZVlUENhD8pZg0zA+LEc1bXg5MShcGMrcezt+jP1O9NQRcFm4bSfgRx1s/LRYb9PnQUIUGTjoIq0p5Tgngbcvjr7uTTPfVBplpt7Y= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=g0pJ8we0LrTCKBxAss0E8/gyTiktotFetJIbksEKlIC4naJ3/HUu48sYO+SehUw7chKjlq3cjEmYFWtoTOn9es2UxZUdabUmRMuwrPvAWR4KxgCtPjAkeg5ctwAufDS1pfUgjBvOOUyNqSDYGTuhsCWlt5LCMFsuvdEjIFTOXCI= On Aug 23, 2007, at 22:38 , JanakiRam wrote: Hi ALL, ii) If so , Whats the maximum limit ? Please help me . Thanks in Advance. _______________________________________________ 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... I'm a newbie to the kernel programming. Can any one clarify my following querie(s). i) Is there any restriction imposed on the memory to be allocated inside a KEXT and its related functions . IMOO the new/delete operations do not use such generic memory management as for example IOMalloc, so new/delete have some additional limitations for listed below... If you use IOMalloc, then you restricted to the comparably small limit of about 100 -- 200 Mb (I don't know the actual size of the pool) If you use IOBufferMemoryDescriptor then you limited with 4Gb address space. If you use 10.4 64-bit memory manager/IODMACommand you have full 64-bit addressing. iii) Can i allocate 1MB ( i.e. char [1024][1024] ) memory in generic kext start function ? Yes you may but remember that heavy loading of stack is not a good practice that leeds to the system inconsistency and difficultly tested bugs. -JanakiRam. This email sent to site_archiver@lists.apple.com
participants (1)
-
Boris Remizov