如果你知道有一個,你能告訴我它的用途嗎?如果不是這樣說的話)謝謝。在FreeBSD內核中是否有用於Malloc Call的標誌「M_FAST」?
簽名:void * malloc(unsigned long size,struct malloc_type type,int flags);
例如。其他標誌...
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.**
這是我的困惑
編輯根:
澄清了M_FAST在我的回答如下製成。
內核的malloc標誌是在FreeBSD下 – PetrosB 2009-11-07 10:15:45