3.1 kmem_cache_create (mm/slab.c) 代码语言:javascript 代码运行次数:0 运行 AI代码解释 /** * kmem_cache_create - Create a cache. * @name: A string which is used in /proc/slabinfo toidentify this cache. * @size: The size of objects to be created in thiscache. * @align: The requ...
// mm\slab.cint__kmem_cache_create(structkmem_cache*cachep,slab_flags_tflags){size_tralign=BYTES_PER_WORD;gfp_tgfp;interr;unsignedintsize=cachep->size;// 对齐处理size=ALIGN(size,cachep->align);/** We should restrict the number of objects in a slab to implement* byte sized index. R...
size:申请的内存大小 flags:参数使用GFP_XXX来指定分配内存的具体内存域,例如 GFP_DMA 指定分配适合于DMA的内存区. static__always_inlinevoid*kmalloc(size_tsize,gfp_tflags){...return__kmalloc(size,flags);}// in mm/slab.cvoid*__kmalloc(size_tsize,gfp_tflags){return__do_kmalloc(size,flags,_...
AI代码解释 // 定义在文件:/mm/slub.cvoid*kmem_cache_alloc_node(struct kmem_cache*s,gfp_t gfpflags,int node){void*ret=slab_alloc_node(s,gfpflags,node,_RET_IP_);returnret;} image.png 代码语言:javascript 代码运行次数:0 运行 AI代码解释 static__always_inlinevoid*slab_alloc_node(struct km...
如果请求的内存小于8KB,就会调用__kmalloc函数,CONFIG_SLUB下,这个函数定义在mm/slub.c中: void*__kmalloc(size_tsize,gfp_tflags) {structkmem_cache*s;void*ret;/* KMALLOC_MAX_CACHE_SIZE = 8MB */if(unlikely(size > KMALLOC_MAX_CACHE_SIZE))/* 和kmalloc函数size大于8kb时采用相同的分配函数 */re...
Size(MM) :400*800mm Thickness(MM:7.8mm Absorption:<0.5% Color:Available in many kinds of designs and colors Usage:Interior & exterior floors & walls, inside and outside, bedrooms, hotels,schools, supermarkets and lobbies Surface treatment:Matt surface, Semi-polished(M), Rough s...
Size Slab Density 3(g/cm³) Thickness 18mm Technics Natural Square M2 Customized Available in Various Sizes Transport Package Wooden Bundles Specification Calibrated Trademark TSP Origin Greece HS Code 6802919000 Production Capacity 5000m2/Month Product Description Volakas White...
Granite Tile(mm) 305x305, 610x305, 400x400, 600x600, 300x300, 600x300 Thickness(cm) 1.0, 1.2, 1.5, 2.0, 2.5, 3.0cm or customized Granite Cut to size(cm) 60 / 120 x 60 x 2 / 3 cm, or customized Granite Small slab(strip slabs) 180~240 up x 60 / 70 x 2 / ...
Size According to Client′s Requirement Thickness 2cm Unified Catalogue Volga Blue Form Big Slab Technics Natural Big Slabs 2400up*1600up Small Slabs 2400up*600up Tile 12"X12" or 300X300 Mm Stair Siz 100~150*30~32cm Transport Package Strong Wooden Crates with Fumigation Speci...
1.Size A. for slab: 1/ Big slab: 200-260cm L X 100-180cm H; T=2 or 1.6cm 2/ small slab: 200-260cm L X 60/70cm H=2 or 1.6cm B. for tile: 12"x 12"x 3/8" (305x305x10mm) 18"x 18"x 3/8" (457x457x 10mm) 24" x24"x 3/8"(610x610x10...