2 * Copyright (C) 2000, 2001 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
11 #include "user_util.h"
12 #include "kern_util.h"
17 int load_initrd(char *filename
, void *buf
, int size
)
21 fd
= os_open_file(filename
, of_read(OPENFLAGS()), 0);
23 printk("Opening '%s' failed - err = %d\n", filename
, -fd
);
26 n
= os_read_file(fd
, buf
, size
);
28 printk("Read of %d bytes from '%s' failed, err = %d\n", size
,
38 * Overrides for Emacs so that we follow Linus's tabbing style.
39 * Emacs will notice this stuff at the end of the file and automatically
40 * adjust the settings for this buffer only. This must remain at the end
42 * ---------------------------------------------------------------------------
44 * c-file-style: "linux"