search for: rootfs_initcall

Displaying 1 result from an estimated 1 matches for "rootfs_initcall".

2007 Apr 11
1
[PATCH] export retained initrd in debugfs
...ror(char *x) @@ -519,7 +520,7 @@ static void __init free_initrd(void) unsigned long crashk_end = (unsigned long)__va(crashk_res.end); #endif if (do_retain_initrd) - goto skip; + return; #ifdef CONFIG_KEXEC /* @@ -588,3 +589,29 @@ static int __init populate_rootfs(void) return 0; } rootfs_initcall(populate_rootfs); + +#ifdef CONFIG_BLK_DEV_INITRD +static struct debugfs_blob_wrapper initrd_blob; + +static int __init export_initrd(void) +{ + struct dentry *d; + initrd_blob.data = (char *)initrd_start; + initrd_blob.size = initrd_end - initrd_start; + + if (!do_retain_initrd) + return 0; + + i...