TacOS
0.2
|
Aller au code source de ce fichier.
Structures de données | |
struct | chardev_interfaces |
Structure contenant les fonction qui permettent d'utiliser un char device. Plus de détails... | |
struct | blkdev_interfaces |
Structure contenant les fonctions qui permettent d'utiliser un block device. Plus de détails... | |
Définitions de type | |
typedef enum _device_type_t | device_type_t |
typedef ssize_t(* | chardev_read_t )(open_file_descriptor *, void *, size_t) |
typedef ssize_t(* | chardev_write_t )(open_file_descriptor *, const void *, size_t) |
typedef int(* | chardev_ioctl_t )(open_file_descriptor *, unsigned int, void *) |
typedef int(* | chardev_open_t )(open_file_descriptor *) |
typedef int(* | chardev_close_t )(open_file_descriptor *) |
typedef ssize_t(* | blkdev_read_t )(open_file_descriptor *, void *, size_t, uint32_t) |
typedef ssize_t(* | blkdev_write_t )(open_file_descriptor *, const void *, size_t, uint32_t) |
typedef int(* | blkdev_ioctl_t )(open_file_descriptor *, unsigned int, void *) |
typedef int(* | blkdev_open_t )(open_file_descriptor *) |
typedef int(* | blkdev_close_t )(open_file_descriptor *) |
Énumérations | |
enum | _device_type_t { CHARDEV, BLKDEV } |
Fonctions | |
void | devfs_init () |
Initialisation du dev FS. | |
int | register_chardev (const char *name, chardev_interfaces *di) |
Enregistre un char device dans le dev FS. Plus de détails... | |
int | register_blkdev (const char *name, blkdev_interfaces *di) |
Enregistre un block device dans le dev FS. Plus de détails... | |
Copyright (C) 2010, 2011, 2012 - TacOS developers.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details at http://www.gnu.org/copyleft/gpl.html
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses.
Description de ce que fait le fichier
typedef enum _device_type_t device_type_t |
Type de device.
enum _device_type_t |
Type de device.
int register_blkdev | ( | const char * | name, |
blkdev_interfaces * | di | ||
) |
Enregistre un block device dans le dev FS.
Enregistre le driver dans la liste.
name | chaine identifiant le driver |
di | structure contenant les interfaces du driver |
int register_chardev | ( | const char * | name, |
chardev_interfaces * | di | ||
) |
Enregistre un char device dans le dev FS.
Enregistre le driver dans la liste.
name | chaine identifiant le driver |
di | structure contenant les interfaces du driver |