Home
last modified time | relevance | path

Searched refs:bdevdef (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/block/
H A Dcmdline-parser.c90 static int parse_parts(struct cmdline_parts **parts, const char *bdevdef) in parse_parts() argument
105 next = strchr(bdevdef, ':'); 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()
119 bdevdef = next; in parse_parts()
120 next = strchr(bdevdef, ','); in parse_parts()
123 min_t(int, next - bdevdef, sizeof(buf) - 1); in parse_parts()
125 strncpy(buf, bdevdef, length); in parse_parts()
/kernel/linux/linux-6.6/block/partitions/
H A Dcmdline.c120 static int parse_parts(struct cmdline_parts **parts, const char *bdevdef) in parse_parts() argument
135 next = strchr(bdevdef, ':'); in parse_parts()
141 length = min_t(int, next - bdevdef, sizeof(newparts->name) - 1); in parse_parts()
142 strscpy(newparts->name, bdevdef, length); in parse_parts()
148 bdevdef = next; in parse_parts()
149 next = strchr(bdevdef, ','); in parse_parts()
152 min_t(int, next - bdevdef, sizeof(buf) - 1); in parse_parts()
154 strscpy(buf, bdevdef, length); in parse_parts()

Completed in 2 milliseconds