root/kernel/blk_drv/ramdisk.c

/* [previous][next][first][last][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. do_ram_request
  2. ram_init

   1 /*
   2  *  linux/kernel/blk_drv/ramdisk.c
   3  *
   4  *  Written by Theodore Ts'o
   5  */
   6 
   7 #include <linux/config.h>
   8 #include <linux/fs.h>
   9 #include <linux/kernel.h>
  10 #include <linux/hdreg.h>
  11 #include <asm/system.h>
  12 #include <asm/segment.h>
  13 #include <asm/memory.h>
  14 
  15 #define MAJOR_NR 1
  16 #include "blk.h"
  17 
  18 char    *ram_disk;                      /* Start of ram disk */
  19 int     ram_disk_size;                  /* Size of ram disk */
  20 
  21 void do_ram_request(void)
     /* [previous][next][first][last][top][bottom][index][help] */
  22 {
  23         int i,r;
  24         unsigned int block,dev;
  25         unsigned int sec,head,cyl;
  26         unsigned int nsect;
  27 
  28         INIT_REQUEST;
  29         if (MINOR(CURRENT->dev) != 0) {
  30                 end_request(0);
  31                 goto repeat;
  32         }
  33         block = CURRENT->sector;
  34         end_request(1);
  35 }
  36 
  37 void ram_init(void)
     /* [previous][next][first][last][top][bottom][index][help] */
  38 {
  39 
  40 }

/* [previous][next][first][last][top][bottom][index][help] */