#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/minix_fs.h>
#include <linux/ext2_fs.h>
#include <linux/romfs_fs.h>
#include <uapi/linux/cramfs_fs.h>
#include <linux/initrd.h>
#include <linux/string.h>
#include <linux/slab.h>
#include "do_mounts.h"
#include "../fs/squashfs/squashfs_fs.h"
#include <linux/decompress/generic.h>
static struct file *in_file, *out_file;
static loff_t in_pos, out_pos;
static int __init prompt_ramdisk(char *str)
{ … }
__setup(…);
int __initdata rd_image_start;
static int __init ramdisk_start_setup(char *str)
{ … }
__setup(…);
static int __init crd_load(decompress_fn deco);
static int __init
identify_ramdisk_image(struct file *file, loff_t pos,
decompress_fn *decompressor)
{ … }
static unsigned long nr_blocks(struct file *file)
{ … }
int __init rd_load_image(char *from)
{ … }
int __init rd_load_disk(int n)
{ … }
static int exit_code;
static int decompress_error;
static long __init compr_fill(void *buf, unsigned long len)
{ … }
static long __init compr_flush(void *window, unsigned long outcnt)
{ … }
static void __init error(char *x)
{ … }
static int __init crd_load(decompress_fn deco)
{ … }