MALLOC failing..
MALLOC failing..
- Subject: MALLOC failing..
- From: Andrew Gallatin <email@hidden>
- Date: Wed, 13 Aug 2003 12:36:44 -0400 (EDT)
I've got a kext which does some BSD things already, so I'm using the
BSD MALLOC().
I've found that MALLOC (ret, void *, len, M_DEVBUF, M_WAITOK);
will fail when I attempt to allocate 135167 bytes, and there are
~700MB free (according to top).
Is there anything I can do to determine why this allocation is
failing? Or, better, to make it succeed? Since there seems to be
plenty of ram, I'm guessing that the problem must be a lack of space
in the kernel map, or a limit on the number of allocations allowed in
some zone.
This is Darwin Kernel Version 6.6: Thu May 1 21:48:54 PDT 2003
on a dual g4 with 1280MB of ram. FWIW, it also fails on 6.3.
Thanks,
Drew
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.