Loading...
Searching...
No Matches
devfs.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2016 Eistec AB
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
9#pragma once
10
26
27#include "clist.h"
28#include "vfs.h"
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
37typedef struct devfs devfs_t;
38
50
57
73
86
87#ifdef __cplusplus
88}
89#endif
90
Circular linked list.
list_node_t clist_node_t
List node structure.
Definition clist.h:106
int devfs_register(devfs_t *node)
Register a node in DevFS.
int devfs_unregister(devfs_t *node)
Remove a registration from DevFS.
struct devfs devfs_t
DevFS node typedef.
Definition devfs.h:37
const vfs_file_system_t devfs_file_system
DevFS file system driver.
struct vfs_file_ops vfs_file_ops_t
struct vfs_file_ops typedef
Definition vfs.h:343
A device "file" consists of a file name and an opaque pointer to device driver private data.
Definition devfs.h:44
void * private_data
Pointer to device driver specific data.
Definition devfs.h:48
const char * path
File system relative path to this node.
Definition devfs.h:46
const vfs_file_ops_t * f_op
Pointer to file operations table for this device.
Definition devfs.h:47
clist_node_t list_entry
List item entry.
Definition devfs.h:45
A file system driver.
Definition vfs.h:374