IMFS_mknod()
const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */
imfs_mknod.c
This routine will examine the mode argument to determine is we are trying to create a directory, regular file and a device node. The creation of other node types is not permitted and will cause an assert.
Memory space will be allocated for a jnode
and the node will be set up
according to the nodal type that was specified. The IMFS_create_node()
function performs the allocation and setup of the node.
The only problem that is currently reported is the lack of memory when we
attempt to allocate space for the jnode
(ENOMEN).
Copyright © 1988-2008 OAR Corporation