[kernelreadfans] Re: FASTCALL syntax?

  • From: "oyk" <oyk@xxxxxxxxxxx>
  • To: "kernelreadfans@xxxxxxxxxxxxx" <kernelreadfans@xxxxxxxxxxxxx>
  • Date: Wed, 4 Jun 2003 11:28:44 +0800

Hi,mingz
>slab allocator? one paper on that in usenix.  
yes, "The Slab Allocator: An Object-Caching Kenrel Memory Allocator", I have 
got it.
我想问一下,如果我定义了一个结构(比较小),需要在内核动态分配内存,在FreeBSD下,
需要先通过MALLOC_DEFINE定义,这样在内核启动的时候或是模块加载的时候初始化相应的slab对象,
在使用这个数据结构的时候只需要malloc/free。
Linux下面内核是怎么使用malloc的?必须根据情况使用kmalloc或vmalloc?
Best Regards
   Ouyang Kai




Other related posts: