Home
last modified time | relevance | path

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

/Linux-v4.19/block/
Dcmdline-parser.c96 struct cmdline_parts *newparts; in parse_parts() local
101 newparts = kzalloc(sizeof(struct cmdline_parts), GFP_KERNEL); in parse_parts()
102 if (!newparts) in parse_parts()
111 length = min_t(int, next - bdevdef, sizeof(newparts->name) - 1); in parse_parts()
112 strncpy(newparts->name, bdevdef, length); in parse_parts()
113 newparts->name[length] = '\0'; in parse_parts()
114 newparts->nr_subparts = 0; in parse_parts()
116 next_subpart = &newparts->subpart; in parse_parts()
132 newparts->nr_subparts++; in parse_parts()
136 if (!newparts->subpart) { in parse_parts()
[all …]