mirror of https://github.com/zrafa/xinu-avr.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
484 B
19 lines
484 B
/* ramopen.c - ramopen */ |
|
|
|
#include <xinu.h> |
|
|
|
/*------------------------------------------------------------------------ |
|
* ramopen - Open a ram disk |
|
*------------------------------------------------------------------------ |
|
*/ |
|
|
|
devcall ramopen ( |
|
struct dentry *devptr, /* Entry in device switch table */ |
|
char *name, /* Unused for a ram disk */ |
|
char *mode /* Unused for a ram disk */ |
|
) |
|
{ |
|
/* No action -- just return the device descriptor */ |
|
|
|
return devptr->dvnum; |
|
}
|
|
|