is there a flag "M_FAST" in FreeBSD kernel for Malloc Call ?

Posted by KaluSingh Gabbar on Stack Overflow See other posts from Stack Overflow or by KaluSingh Gabbar
Published on 2009-11-06T01:25:19Z Indexed on 2010/03/23 23:53 UTC
Read the original article Hit count: 143

Filed under:
|
|
|

if you know there is one, can you let me know what its for ? if not please say so : ) thanks.

Signature : void * malloc(unsigned long size, struct malloc_type type, int flags);

for example. other flags are...

 M_ZERO  
         Causes the allocated memory to be set to all zeros.

 M_WAITOK
         Indicates that it is OK to wait for resources.  If the request
         cannot be immediately fulfilled, the current process is put to
         sleep to wait for resources to be released by other processes.
         The malloc(), realloc(), and reallocf() functions cannot return
         NULL if M_WAITOK is specified.**

This is the root of my confusion

EDIT:

The clarification for M_FAST is made in my answer below.

© Stack Overflow or respective owner

Related posts about freebsd

Related posts about c++