|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmoss.drivers.MDevices
public class MDevices
this class is used for device-driver management
| Constructor Summary | |
|---|---|
MDevices()
|
|
| Method Summary | |
|---|---|
static int |
close(MFile fh)
closes a device |
static void |
finalinit()
called to perform final initialisation (sets up /proc things) |
static int |
find_driver(java.lang.String name)
finds a driver based on name (various uses) |
static void |
init_devices()
called to initialise the device-driver management bits |
static int |
load_driver(java.lang.String name)
"dynamically" loads a device driver |
static int |
open(MFile fh,
int major,
int minor,
int flags)
opens a device |
static int |
register_driver(java.lang.String name,
int major,
MFileOps drv)
registers a device driver |
static int |
unregister_driver(java.lang.String name,
int major)
unregisters a device driver |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MDevices()
| Method Detail |
|---|
public static void init_devices()
public static void finalinit()
public static int find_driver(java.lang.String name)
name - device name
public static int register_driver(java.lang.String name,
int major,
MFileOps drv)
name - device-driver name (must be unique)major - major device number (must be unique)drv - reference to device driver
public static int unregister_driver(java.lang.String name,
int major)
name - device-driver namemajor - major device number
public static int load_driver(java.lang.String name)
name - class name containing the device-driver
public static int open(MFile fh,
int major,
int minor,
int flags)
fh - file-handle to be associated with the device (should have an inode attached)major - major device numberminor - minor device numberflags - open flags
public static int close(MFile fh)
fh - file-handle associated with device
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||