Home
last modified time | relevance | path

Searched refs:xmalloc (Results 1 – 21 of 21) sorted by relevance

/linux/scripts/genksyms/
H A Dlex.l103 next_node = xmalloc(sizeof(*next_node)); \
105 cur_node->string = memcpy(xmalloc(L+1), T, L+1); \
141 next_node = xmalloc(sizeof(*next_node));
163 cur_filename = memcpy(xmalloc(e-file+1), file, e-file+1);
H A Dgenksyms.h75 #define xmalloc(size) ({ void *__ptr = malloc(size); \ macro
H A Dgenksyms.c282 sym = xmalloc(sizeof(*sym)); in __add_symbol()
346 newnode = xmalloc(sizeof(*newnode)); in mk_node()
375 newnode = xmalloc(sizeof(*newnode)); in copy_node()
/linux/scripts/kconfig/
H A Dutil.c59 file = xmalloc(sizeof(*file) + len + 1);
77 gs.s = xmalloc(sizeof(char) * 64); in str_append()
H A Dlexer.l59 text = xmalloc(START_STRSIZE); in new_string()
81 text = xmalloc(size + 1); in alloc_string()
411 struct buffer *buf = xmalloc(sizeof(*buf));
H A Dpreprocess.c50 e = xmalloc(sizeof(*e)); in env_add()
304 v = xmalloc(sizeof(*v)); in variable_add()
509 out = xmalloc(1); in __expand_string()
H A Dmenu.c72 menu = xmalloc(sizeof(*menu)); in menu_add_entry()
166 prop = xmalloc(sizeof(*prop)); in menu_add_prop()
669 jump = xmalloc(sizeof(struct jump_key)); in get_prompt_str()
H A Dconfdata.c585 out = xmalloc(len); in escape_string_value()
739 val_prefixed = xmalloc(val_prefixed_len); in print_symbol_for_rustccfg()
H A Dsymbol.c790 sym->def[S_DEF_USER].val = val = xmalloc(size); in sym_set_string_value()
794 sym->def[S_DEF_USER].val = val = xmalloc(size); in sym_set_string_value()
948 symbol = xmalloc(sizeof(*symbol)); in sym_lookup()
H A Dexpr.c46 e = xmalloc(sizeof(*e)); in expr_lookup()
/linux/scripts/gendwarfksyms/
H A Ddie.c36 cd = xmalloc(sizeof(*cd)); in create_die()
126 df = xmalloc(sizeof(*df)); in append_item()
H A Dtypes.c48 entry = xmalloc(sizeof(*entry)); in type_list_append()
125 e = xmalloc(sizeof(*e)); in type_map_add()
205 es = xmalloc(count * sizeof(*es)); in type_map_write()
H A Dcache.c18 ci = xmalloc(sizeof(*ci)); in cache_set()
H A Dkabi.c231 rule = xmalloc(sizeof(*rule)); in kabi_read_rules()
/linux/scripts/basic/
H A Dfixdep.c138 aux = xmalloc(sizeof(*aux) + len); in add_to_hashtable()
230 buf = xmalloc(st.st_size + 1); in read_file()
/linux/scripts/include/
H A Dxalloc.h9 static inline void *xmalloc(size_t size) in xmalloc() function
/linux/scripts/mod/
H A Dmodpost.c133 buf = xmalloc(st.st_size + 1); in read_text_file()
192 mod = xmalloc(sizeof(*mod) + namelen + 1); in new_module()
239 struct symbol *s = xmalloc(sizeof(*s) + strlen(name) + 1); in alloc_symbol()
317 ns_entry = xmalloc(sizeof(*ns_entry) + strlen(namespace) + 1); in add_namespace()
1596 mod->no_trim_symbol = xmalloc(info.no_trim_symbol_len); in read_symbols()
2065 tmp = xmalloc(b->pos); in write_if_changed()
2294 dl = xmalloc(sizeof(*dl)); in main()
H A Dsymsearch.c128 elf->symsearch = xmalloc(sizeof(struct symsearch) + in symsearch_init()
H A Dsumversion.c310 cmd = xmalloc(strlen(objfile) + sizeof("..cmd")); in parse_source_files()
316 dir = xmalloc(dirlen + 1); in parse_source_files()
H A Dfile2alias.c71 new = xmalloc(sizeof(*new) + len); in module_alias_printf()
/linux/scripts/
H A Dkallsyms.c166 sym = xmalloc(sizeof(*sym) + len + 1); in read_symbol()
355 markers = xmalloc(sizeof(*markers) * markers_cnt); in write_src()