Nios® V Processor Software Developer Handbook

ID 743810
Date 5/26/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

7.7.2.2. Register a File Subsystem Device

You can register a file subsystem using the following function:

int alt_fs_reg (alt_dev* dev)

This function takes a single input argument, which is the device structure to register. A negative return value indicates that the file system cannot be registered.

After a file subsystem is registered with the HAL file system, you can access it through the HAL API and the ANSI C standard library. The mount point for the file subsystem is the name specified in the alt_dev structure.

For more information, refer to the Developing Programs Using the Hardware Abstraction Layer section.