Dynamic device file system. More...
Dynamic device file system.
This file system implementation allows devices to register file names for easier access to device drivers from shell commands etc.
The idea is similar to the /dev directory on Unix.
|Random backends for devfs. |
|DevFS public API. |
|A device "file" consists of a file name and an opaque pointer to device driver private data. More...|
|typedef struct devfs||devfs_t|
|DevFS node typedef. More...|
|int||devfs_register (devfs_t *node)|
|Register a node in DevFS. More...|
|int||devfs_unregister (devfs_t *node)|
|Remove a registration from DevFS. More...|
|DevFS file system driver. More...|
|int devfs_register||(||devfs_t *||node||)|
Register a node in DevFS.
The node will immediately become available to
vfs_open, if DevFS is already mounted somewhere.
If DevFS is not mounted, the node will be registered and will become available to
vfs_open when DevFS is mounted.
|[in]||node||DevFS node to register|
|int devfs_unregister||(||devfs_t *||node||)|
Remove a registration from DevFS.
The node will no longer be available to
vfs_open, but any already opened FDs will remain open.
|[in]||node||DevFS node to unregister|
DevFS file system driver.
For use with vfs_mount