loadramdisk.c File Reference

#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]


Define Documentation

#define RAM   "/dev/ram"
 

Definition at line 15 of file loadramdisk.c.

Referenced by main().


Function Documentation

int main int  argc,
char *  argv[]
 

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.

static unsigned long size_device int  fd  )  [static]
 

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().


Variable Documentation

char buf[10240]
 

Definition at line 17 of file loadramdisk.c.


Generated on Fri Apr 14 23:06:50 2006 for minix by  doxygen 1.4.6