XINU
device
ram
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
10
devcall
ramopen
(
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
}
xinu.h
全てのシステムヘッダファイルをインクルードする。
dentry
Definition:
conf.h:6
dentry::dvnum
int32 dvnum
Definition:
conf.h:7
ramopen
devcall ramopen(struct dentry *devptr, char *name, char *mode)
Definition:
ramopen.c:10
devcall
int32 devcall
デバイスコール関数 返り値の型
Definition:
kernel.h:49
Generated by
1.8.13