RTEMS Logo

RTEMS 4.8.0 On-Line Library


IMFS_stat() for Regular Files

PREV UP NEXT Bookshelf RTEMS Filesystem Design Guide

6.4.2.7: IMFS_stat() for Regular Files

Corresponding Structure Element:

IMFS_stat()

Arguments:

rtems_filesystem_location_info_t   *loc,
struct stat                        *buf

File:

imfs_stat.c

Description:

This routine actually performs status processing for both devices and regular files.

The IMFS_jnode_t structure is referenced to determine the type of node under the filesystem.

If the node is associated with a device, node information is extracted and transformed to set the st_dev element of the stat structure.

If the node is a regular file, the size of the regular file is extracted from the node.

This routine rejects other node types.

The following information is extracted from the node and placed in the stat structure:


PREV UP NEXT Bookshelf RTEMS Filesystem Design Guide

Copyright © 1988-2007OAR Corporation