Abstract Module System for KOS's VFS
More...
Abstract Module System for KOS's VFS
◆ NMMGR_FLAGS_ALIAS
#define NMMGR_FLAGS_ALIAS 0x00000004 |
This structure aliases another.
◆ NMMGR_FLAGS_INDEV
#define NMMGR_FLAGS_INDEV 0x00000002 |
This structure maps into /dev/.
◆ NMMGR_FLAGS_NEEDSFREE
#define NMMGR_FLAGS_NEEDSFREE 0x00000001 |
This structure must be freed when removed.
◆ NMMGR_LIST_INIT
#define NMMGR_LIST_INIT { NULL } |
List entry initializer for static structs.
If you are creating nmmgr handlers, this is what you should initialize the list_ent member with.
◆ LIST_HEAD()
typedef LIST_HEAD |
( |
nmmgr_list | , |
|
|
nmmgr_handler | ) |
Name handler list type.
Contrary to what doxygen may think, this is not a function.
◆ nmmgr_get_list()
nmmgr_list_t * nmmgr_get_list |
( |
void | | ) |
|
Get the head element of the name list.
- Warning
- DO NOT MODIFY THE VALUE RETURNED BY THIS FUNCTION! In fact, don't ever call this function.
- Returns
- The head of the name handler list
◆ nmmgr_handler_add()
Add a name handler.
This function adds a new name handler to the list in the kernel.
- Parameters
-
- Return values
-
◆ nmmgr_handler_remove()
Remove a name handler.
This function removes a name handler from the list in the kernel.
- Parameters
-
- Return values
-
0 | On success |
-1 | If the handler wasn't found |
◆ nmmgr_lookup()
Retrieve a name handler by name.
This function will retrieve a name handler by its pathname.
- Parameters
-
name | The handler to look up |
- Returns
- The handler, or NULL on failure.