RTEMS Logo

RTEMS 4.10.2 On-Line Library


IMFS_mknod()

PREV UP NEXT Bookshelf RTEMS Filesystem Design Guide

6.4.1.6: IMFS_mknod()

Corresponding Structure Element:

IMFS_mknod()

Arguments:

const char                          *token,        /* IN */
mode_t                               mode,         /* IN */
dev_t                                dev,          /* IN */
rtems_filesystem_location_info_t    *pathloc       /* IN/OUT */

File:

imfs_mknod.c

Description:

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).


PREV UP NEXT Bookshelf RTEMS Filesystem Design Guide

Copyright © 1988-2008 OAR Corporation