GFP_KERNEL or SLAB_KERNEL?
来源:互联网 发布:同济大学软件学院 编辑:程序博客网 时间:2024/05/16 11:54
GFP_KERNEL or SLAB_KERNEL?
The kernel slab allocator is an additional layer built on top of the low-level code; it handles situations where numerous objects of the same size are frequently allocated and freed. The slab code, too, has a set of flags describing how memory allocation is to happen. They look suspiciously like the low-level flags, but they have different names; instead of GFP_KERNEL, for example, user of the slab code are expected to say SLAB_KERNEL.
Underneath it all, however, the two sets of flags are the same. As a result, many calls to the slab code just use the GFP_ flags, rather than the SLAB_ flags. William Lee Irwin decided it was time to fix that; he posted a patch converting several slab users over to the SLAB_ flags. It looked like a fairly standard, freeze-stage kernel cleanup.
The question came up, however: why bother? Not everybody, it seems, thinks that the separate SLAB_flags are worth the trouble. William responded with another patch which gets rid of the SLAB_flags altogether. So far, neither patch has been merged. But they do raise a worthwhile question: why do we need a separate set of flags if the callers have nothing different to say?
- GFP_KERNEL or SLAB_KERNEL?
- GFP_ATOMIC or GFP_KERNEL?
- GFP_ATOMIC or GFP_KERNEL 区别
- GFP_ATOMIC or GFP_KERNEL?
- GFP_ATOMIC & GFP_KERNEL kmalloc& vmalloc
- linux中GFP_KERNEL
- linux内核Kmalloc - GFP_ATOMIC - GFP_KERNEL - GFP_USER
- linux内核Kmalloc分配内存需要注意的问题(GFP_KERNEL可能会造成内核调度错误)
- linux内核Kmalloc分配内存需要注意的问题(GFP_KERNEL可能会造成内核调度错误)
- linux内核Kmalloc分配内存需要注意的问题(GFP_KERNEL可能会造成内核调度错误)
- linux内核Kmalloc分配内存需要注意的问题(GFP_KERNEL可能会造成内核调度错误)
- linux内核Kmalloc分配内存需要注意的问题(GFP_KERNEL可能会造成内核调度错误)
- 'or'='or'
- 'or'='or'
- Hibernate or JPA or JDBC or?
- WHERE.....OR(........)
- OR Mapping
- OR Mapping
- C语言结构体位域
- 如何选择机器学习算法(转、译)
- jquery中把字符串转换为数字
- 把一个十进制数的二进制形式翻转,并输出翻转后所对应的十进制数
- linux下布署java和定时任务
- GFP_KERNEL or SLAB_KERNEL?
- phpstudy配置伪静态的方法
- android中的常见算法整理
- Driver porting: low-level memory allocation
- 一句话木马的原理及利用分析(asp,aspx,php,jsp)
- word2007去掉文字当中的白色背景
- JSTL常用标签库介绍
- 占位符防止sql注入
- JAVA中this用法小结