devfs: add vnodes to devfs tree

This commit is contained in:
Michael Shaw 2024-02-12 21:11:56 -05:00
commit c487c4c9dd
8 changed files with 152 additions and 26 deletions

View file

@ -35,6 +35,12 @@ struct block_device *block_register(char *name, struct block_device_ops *ops, vo
return bdev;
}
struct block_device **block_get_all_devices(int *n)
{
*n = block_devices_count;
return block_devices;
}
struct block_device *block_get_device(const char *name)
{
for (size_t i = 0; i < block_devices_count; i++) {