Lines Matching full:count
65 For example, do not use ``count * size`` as an argument, as in::
67 foo = kmalloc(count * size, GFP_KERNEL);
71 foo = kmalloc_array(count, size, GFP_KERNEL);
79 bar = vmalloc(array_size(count, size));
84 header = kzalloc(sizeof(*header) + count * sizeof(*header->item),
89 header = kzalloc(struct_size(header, item, count), GFP_KERNEL);
99 foo = krealloc(current_size + chunk_size * (count - 3), GFP_KERNEL);
105 size_sub(count, 3))), GFP_KERNEL);
130 the destination, but rather a count of non-NUL bytes copied (or negative
143 destination, but rather a count of non-NUL bytes copied (or negative
243 size_t count;
254 size_t count;
267 size_t count;
283 size_t count;
289 instance = kmalloc(struct_size(instance, items, count), GFP_KERNEL);
290 instance->count = count;
292 size = sizeof(instance->items) * instance->count;
314 size_t count;
320 instance = kmalloc(struct_size(instance, items, count - 1), GFP_KERNEL);
321 instance->count = count;
323 size = sizeof(instance->items) * instance->count;
326 In the example above, we had to remember to calculate ``count - 1`` when using
333 size_t count;
339 instance = kmalloc(struct_size(instance, items, count), GFP_KERNEL);
340 instance->count = count;
342 memcpy(instance->items, source, flex_array_size(instance, items, instance->count));