tag | line | file | source code |
newtab | 144 | kernel/module.c | struct symbol_table *newtab; |
newtab | 204 | kernel/module.c | if ((newtab = (struct symbol_table*) kmalloc(size, GFP_KERNEL)) == NULL) { |
newtab | 209 | kernel/module.c | kfree_s(newtab, size); |
newtab | 212 | kernel/module.c | memcpy_fromfs((char *)(newtab), symtab, size); |
newtab | 216 | kernel/module.c | newtab->n_symbols * sizeof(struct internal_symbol) + |
newtab | 217 | kernel/module.c | newtab->n_refs * sizeof(struct module_ref); |
newtab | 219 | kernel/module.c | if ((newtab->n_symbols < 0) || (newtab->n_refs < 0) || (legal_start > size)) { |
newtab | 221 | kernel/module.c | newtab->n_symbols, newtab->n_refs); |
newtab | 222 | kernel/module.c | kfree_s(newtab, size); |
newtab | 227 | kernel/module.c | for (sym = &(newtab->symbol[0]), i = 0; i < newtab->n_symbols; ++sym, ++i) { |
newtab | 230 | kernel/module.c | kfree_s(newtab, size); |
newtab | 234 | kernel/module.c | sym->name += (long)newtab; |
newtab | 236 | kernel/module.c | mp->symtab = newtab; |
newtab | 247 | kernel/module.c | i < newtab->n_refs; ++ref, ++i) { |
newtab | 636 | kernel/module.c | struct symbol_table *newtab; |
newtab | 718 | kernel/module.c | if (!(newtab = (struct symbol_table*)kmalloc( |
newtab | 728 | kernel/module.c | memcpy(newtab, intab, SYMSIZ + intab->n_symbols * INTSIZ); |
newtab | 730 | kernel/module.c | newtab->size = size; |
newtab | 731 | kernel/module.c | newtab->n_refs = oldtab->n_refs; |
newtab | 734 | kernel/module.c | memcpy( ((char *)newtab) + SYMSIZ + intab->n_symbols * INTSIZ, |
newtab | 741 | kernel/module.c | newref = (struct module_ref*) &(newtab->symbol[newtab->n_symbols]); |
newtab | 752 | kernel/module.c | mp->symtab = newtab; |