tag | line | file | source code |
newtab | 200 | kernel/module.c | struct symbol_table *newtab; |
newtab | 260 | kernel/module.c | if ((newtab = (struct symbol_table*) kmalloc(size, GFP_KERNEL)) == NULL) { |
newtab | 265 | kernel/module.c | kfree_s(newtab, size); |
newtab | 268 | kernel/module.c | memcpy_fromfs((char *)(newtab), symtab, size); |
newtab | 272 | kernel/module.c | newtab->n_symbols * sizeof(struct internal_symbol) + |
newtab | 273 | kernel/module.c | newtab->n_refs * sizeof(struct module_ref); |
newtab | 275 | kernel/module.c | if ((newtab->n_symbols < 0) || (newtab->n_refs < 0) || (legal_start > size)) { |
newtab | 277 | kernel/module.c | newtab->n_symbols, newtab->n_refs); |
newtab | 278 | kernel/module.c | kfree_s(newtab, size); |
newtab | 283 | kernel/module.c | for (sym = &(newtab->symbol[0]), i = 0; i < newtab->n_symbols; ++sym, ++i) { |
newtab | 286 | kernel/module.c | kfree_s(newtab, size); |
newtab | 290 | kernel/module.c | sym->name += (long)newtab; |
newtab | 292 | kernel/module.c | mp->symtab = newtab; |
newtab | 303 | kernel/module.c | i < newtab->n_refs; ++ref, ++i) { |
newtab | 692 | kernel/module.c | struct symbol_table *newtab; |
newtab | 774 | kernel/module.c | if (!(newtab = (struct symbol_table*)kmalloc( |
newtab | 784 | kernel/module.c | memcpy(newtab, intab, SYMSIZ + intab->n_symbols * INTSIZ); |
newtab | 786 | kernel/module.c | newtab->size = size; |
newtab | 787 | kernel/module.c | newtab->n_refs = oldtab->n_refs; |
newtab | 790 | kernel/module.c | memcpy( ((char *)newtab) + SYMSIZ + intab->n_symbols * INTSIZ, |
newtab | 797 | kernel/module.c | newref = (struct module_ref*) &(newtab->symbol[newtab->n_symbols]); |
newtab | 808 | kernel/module.c | mp->symtab = newtab; |