Lines Matching defs:size
520 const void *from, unsigned long size)
525 memcpy(per_cpu_ptr(mod->percpu, cpu), from, size);
585 const void *from, unsigned long size)
587 /* pcpusec should be 0, and size of that section should be 0. */
588 BUG_ON(size != 0);
1328 unsigned int nloaded = 0, i, size[2];
1337 size[0] = ALIGN(sizeof(*sect_attrs)
1340 size[1] = (nloaded + 1) * sizeof(sect_attrs->grp.attrs[0]);
1341 sect_attrs = kzalloc(size[0] + size[1], GFP_KERNEL);
1347 sect_attrs->grp.attrs = (void *)sect_attrs + size[0];
1407 * The caller checked the pos and count against our size.
1460 nattr->size = info->sechdrs[i].sh_size;
2040 /* Update size with this section: return offset. */
2041 static long get_offset(struct module *mod, unsigned int *size,
2046 *size += arch_mod_section_prepend(mod, section);
2047 ret = ALIGN(*size, sechdr->sh_addralign ?: 1);
2048 *size = ret + sechdr->sh_size;
2170 unsigned long size = infosec->sh_size;
2172 for (p = (char *)infosec->sh_addr; p; p = next_string(p, &size)) {
2405 void * __weak module_alloc(unsigned long size)
2407 return vmalloc_exec(size);
2410 static void *module_alloc_update_bounds(unsigned long size)
2412 void *ret = module_alloc(size);
2419 if ((unsigned long)ret + size > module_addr_max)
2420 module_addr_max = (unsigned long)ret + size;
2570 if (stat.size > INT_MAX) {
2576 if (stat.size == 0) {
2581 info->hdr = vmalloc(stat.size);
2588 while (pos < stat.size) {
2590 stat.size - pos);
3271 /* Allocate and load the module: note that size of section 0 is always
3472 static inline int within(unsigned long addr, void *start, unsigned long size)
3474 return ((void *)addr >= start && (void *)addr < start + size);
3497 unsigned long *size,
3533 if (size)
3534 *size = nextval - kallsyms->symtab[best].st_value;
3543 unsigned long *size,
3558 ret = get_ksymbol(mod, addr, size, offset);
3595 int lookup_module_symbol_attrs(unsigned long addr, unsigned long *size,
3607 sym = get_ksymbol(mod, addr, size, offset);
3781 /* Format: modulename size refcount deps address