#include <linux/blkdev.h>
#include <linux/fs.h>
#include <linux/slab.h>
#include "check.h"
#define PF_RDONLY …
#define PF_POWERUP_LOCK …
struct cmdline_subpart { … };
struct cmdline_parts { … };
static int parse_subpart(struct cmdline_subpart **subpart, char *partdef)
{ … }
static void free_subpart(struct cmdline_parts *parts)
{ … }
static int parse_parts(struct cmdline_parts **parts, char *bdevdef)
{ … }
static void cmdline_parts_free(struct cmdline_parts **parts)
{ … }
static int cmdline_parts_parse(struct cmdline_parts **parts,
const char *cmdline)
{ … }
static struct cmdline_parts *cmdline_parts_find(struct cmdline_parts *parts,
const char *bdev)
{ … }
static char *cmdline;
static struct cmdline_parts *bdev_parts;
static int add_part(int slot, struct cmdline_subpart *subpart,
struct parsed_partitions *state)
{ … }
static int cmdline_parts_set(struct cmdline_parts *parts, sector_t disk_size,
struct parsed_partitions *state)
{ … }
static int __init cmdline_parts_setup(char *s)
{ … }
__setup(…);
static bool has_overlaps(sector_t from, sector_t size,
sector_t from2, sector_t size2)
{ … }
static inline void overlaps_warns_header(void)
{ … }
static void cmdline_parts_verifier(int slot, struct parsed_partitions *state)
{ … }
int cmdline_partition(struct parsed_partitions *state)
{ … }