Lines Matching defs:size

257 static void __mod_update_bounds(void *base, unsigned int size)
260 unsigned long max = min + size;
677 const void *from, unsigned long size)
682 memcpy(per_cpu_ptr(mod->percpu, cpu), from, size);
742 const void *from, unsigned long size)
744 /* pcpusec should be 0, and size of that section should be 0. */
745 BUG_ON(size != 0);
1491 unsigned int nloaded = 0, i, size[2];
1500 size[0] = ALIGN(sizeof(*sect_attrs)
1503 size[1] = (nloaded + 1) * sizeof(sect_attrs->grp.attrs[0]);
1504 sect_attrs = kzalloc(size[0] + size[1], GFP_KERNEL);
1510 sect_attrs->grp.attrs = (void *)sect_attrs + size[0];
1570 * The caller checked the pos and count against our size.
1623 nattr->size = info->sechdrs[i].sh_size;
2211 /* Update size with this section: return offset. */
2212 static long get_offset(struct module *mod, unsigned int *size,
2217 *size += arch_mod_section_prepend(mod, section);
2218 ret = ALIGN(*size, sechdr->sh_addralign ?: 1);
2219 *size = ret + sechdr->sh_size;
2341 unsigned long size = infosec->sh_size;
2343 for (p = (char *)infosec->sh_addr; p; p = next_string(p, &size)) {
2576 void * __weak module_alloc(unsigned long size)
2578 return vmalloc_exec(size);
2725 if (stat.size > INT_MAX) {
2731 if (stat.size == 0) {
2736 info->hdr = vmalloc(stat.size);
2743 while (pos < stat.size) {
2745 stat.size - pos);
3438 /* Allocate and load the module: note that size of section 0 is always
3649 static inline int within(unsigned long addr, void *start, unsigned long size)
3651 return ((void *)addr >= start && (void *)addr < start + size);
3674 unsigned long *size,
3710 if (size)
3711 *size = nextval - kallsyms->symtab[best].st_value;
3720 unsigned long *size,
3733 ret = get_ksymbol(mod, addr, size, offset);
3769 int lookup_module_symbol_attrs(unsigned long addr, unsigned long *size,
3781 sym = get_ksymbol(mod, addr, size, offset);
3957 /* Format: modulename size refcount deps address