XINU
ramopen.c
Go to the documentation of this file.
1 /* ramopen.c - ramopen */
2 
3 #include <xinu.h>
4 
5 /*------------------------------------------------------------------------
6  * ramopen - Open a ram disk
7  *------------------------------------------------------------------------
8  */
9 
11  struct dentry *devptr, /* Entry in device switch table */
12  char *name, /* Unused for a ram disk */
13  char *mode /* Unused for a ram disk */
14  )
15 {
16  /* No action -- just return the device descriptor */
17 
18  return devptr->dvnum;
19 }
全てのシステムヘッダファイルをインクルードする。
Definition: conf.h:6
int32 dvnum
Definition: conf.h:7
devcall ramopen(struct dentry *devptr, char *name, char *mode)
Definition: ramopen.c:10
int32 devcall
デバイスコール関数 返り値の型
Definition: kernel.h:49