RTEMS 4.8.0 On-Line Library
memfile_read() for Regular Files
RTEMS Filesystem Design Guide
6.4.2.3: memfile_read() for Regular Files
Corresponding Structure Element:
memfile_read()
Arguments:
-
rtems_libio_t *iop,
void *buffer,
unsigned32 count
File:
memfile.c
Description:
This routine will determine the jnode
that is associated with this file.
It will then call IMFS_memfile_read() with the jnode
, file position index,
buffer and transfer count as arguments.
IMFS_memfile_read() will do the following:
- Verify that the
jnode
is associated with a memory file
- Verify that the destination of the read is valid
- Adjust the length of the read if it is too long
- Acquire data from the memory blocks associated with the file
- Update the access time for the data in the file
RTEMS Filesystem Design Guide
Copyright © 1988-2007OAR Corporation