1 | struct struct kmem_cache *my_cachep; |
1 2 3 4 5 | struct kmem_cache * kmem_cache_create( const char *name, size_t size, size_t align, unsigned long flags; void (*ctor)(void*, struct kmem_cache *, unsigned long), void (*dtor)(void*, struct kmem_cache *, unsigned long)); |
1 | void kmem_cache_destroy( struct kmem_cache *cachep ); |
1 | void kmem_cache_alloc( struct kmem_cache *cachep, gfp_t flags ); |
1 | void kmem_cache_free( struct kmem_cache *cachep, void *objp ); |
1 2 | void *kmalloc( size_t size, int flags ); void kfree( const void *objp ); |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |