#include <errno.h>#include <fcntl.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <sys/ioctl.h>Include dependency graph for loadramdisk.c:

Go to the source code of this file.
Defines | |
| #define | RAM "/dev/ram" |
Functions | |
| static unsigned long | size_device (int fd) |
| int | main (int argc, char *argv[]) |
Variables | |
| char | buf [10240] |
|
|
Definition at line 15 of file loadramdisk.c. Referenced by main(). |
|
||||||||||||
|
Definition at line 21 of file loadramdisk.c. References errno, exit(), fprintf(), ioctl, lseek, MIOCRAMSIZE, O_RDONLY, O_RDWR, off, open, r, RAM, read, s, SEEK_SET, size, size_device(), stderr, strerror(), and write. |
|
|
Definition at line 95 of file loadramdisk.c. References b, errno, exit(), fprintf(), high, lseek, r, read, SEEK_SET, stderr, and strerror(). Referenced by main(). |
|
|
Definition at line 17 of file loadramdisk.c. |
1.4.6