#include <ubixos/types.h>
Include dependency graph for device.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
struct | device_interface |
struct | device_node |
struct | device_resource |
Functions | |
int | device_add (int, char, struct device_interface *) |
device_node * | device_find (int major, int minor) |
int | device_remove (struct device_node *) |
int device_add | ( | int | , | |
char | , | |||
struct device_interface * | ||||
) |
Definition at line 51 of file device.c.
References devices, deviceSpinLock, device_node::devInfo, device_interface::init, device_interface::initialized, kmalloc(), kprintf(), device_node::minor, device_node::next, NULL, device_node::prev, spinLock(), spinUnlock(), and device_node::type.
Referenced by fdc_init(), and initHardDisk().
Here is the call graph for this function:
struct device_node* device_find | ( | int | major, | |
int | minor | |||
) |
Definition at line 86 of file device.c.
References devices, deviceSpinLock, device_node::devInfo, device_interface::major, device_node::minor, device_node::next, spinLock(), and spinUnlock().
Referenced by devfs_open(), devfs_read(), devfs_write(), and vfs_mount().
Here is the call graph for this function:
int device_remove | ( | struct device_node * | ) |
Definition at line 110 of file device.c.
References devices, deviceSpinLock, kfree(), device_node::next, NULL, spinLock(), and spinUnlock().
Here is the call graph for this function: