MIO_read Subroutine

Purpose

Read from a file through the MIO library.

Library

Modular I/O library (libmio.a)

Syntax

#include <libmio.h>
 
int MIO_read(FileDescriptor,
Buffer, NBytes)
int  FileDescriptor;
void * Buffer;
int NBytes;

Description

This subroutine is an entry point of the MIO library. Use this subroutine to instrument your application with the MIO library. You can replace the read kernel I/O subroutine with this equivalent MIO subroutine. See theModular I/O in AIX® Version 7.1 Performance management for the MIO library implementation.

Use this subroutine to read to the number of bytes of data specified by the NBytes parameter from the file associated with the FileDescriptor parameter into the buffer, through the Modular I/O (MIO) library. The Buffer parameter points to the buffer. The FileDescriptor parameter results from the MIO_open64 subroutine.

Parameters

The parameters are those of the corresponding standard POSIX system call read.

Return Values

The return values are those of the corresponding standard POSIX system call read.

Error Codes

The error codes are those of the corresponding standard POSIX system call read.

Location

/usr/lib/libmio.a